* path.cc (symlink_info::check): Reorder test for nfs symlinks.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user