From 362ce9fa9958fa5cab6820da8117c6ace28a2349 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 24 May 2008 09:54:32 +0000 Subject: * path.cc (symlink_info::check): Reorder test for nfs symlinks. --- winsup/cygwin/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 30688a866..eeb4b8495 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) -- cgit v1.2.3