Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-09 20:21:55 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-09 20:21:55 +0400
commit5fc3f2d40a7b47d16860f026d2f9e86af93cb9f5 (patch)
tree72ac08cae8418b8b965de2e92ffcef515b218864
parentbd4ec49671b07f93883c7e0c9142125525731714 (diff)
Slight optimization.
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 579de96ab..04b4fb3e2 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -265,7 +265,7 @@ fhandler_base::get_default_fmode (int flags)
const char *stem = get_name () + nlen - pflen;
if (pflen > nlen || (stem != get_name () && !isdirsep (stem[-1])))
continue;
- else if (strcasematch (stem, pf->name) && ACCFLAGS (pf->flags) == accflags)
+ else if (ACCFLAGS (pf->flags) == accflags && strcasematch (stem, pf->name))
return pf->flags & ~(O_RDONLY | O_WRONLY | O_RDWR);
}
}