Slight optimization.

This commit is contained in:
Christopher Faylor 2000-07-09 16:21:55 +00:00
parent bd4ec49671
commit 5fc3f2d40a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}