aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-05-24 09:54:32 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-05-24 09:54:32 +0000
commit362ce9fa9958fa5cab6820da8117c6ace28a2349 (patch)
treed1c0126d3942e78acffc2f3a0267394121fd0bc3 /winsup/cygwin/path.cc
parent6afd63010691ff7a1a3caa7d96b23b1f390a719a (diff)
downloadnewlib-362ce9fa9958fa5cab6820da8117c6ace28a2349.zip
newlib-362ce9fa9958fa5cab6820da8117c6ace28a2349.tar.gz
newlib-362ce9fa9958fa5cab6820da8117c6ace28a2349.tar.bz2
* path.cc (symlink_info::check): Reorder test for nfs symlinks.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 30688a8..eeb4b84 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2527,7 +2527,7 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
/* If the file could be opened with FILE_READ_EA, and if it's on a
NFS share, check if it's a symlink. Only files can be symlinks
(which can be symlinks to directories). */
- else if (!no_ea && !(fileattr & FILE_ATTRIBUTE_DIRECTORY) && fs.is_nfs ())
+ else if (fs.is_nfs () && !no_ea && !(fileattr & FILE_ATTRIBUTE_DIRECTORY))
{
res = check_nfs_symlink (h);
if (!res)