From 5fc3f2d40a7b47d16860f026d2f9e86af93cb9f5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 9 Jul 2000 16:21:55 +0000 Subject: [PATCH] Slight optimization. --- winsup/cygwin/fhandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }