diff options
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 8aa8bbce3..6a18dc1ff 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -2156,7 +2156,7 @@ symlink_check_one (const char *in_path, char *buf, int buflen, DWORD& fileattr, /* A symlink will have the `system' file attribute. */ /* Only files can be symlinks (which can be symlinks to directories). */ - if (!SYMLINKATTR (fileattr)) + if (!(*pflags & PATH_SYMLINK) && !SYMLINKATTR (fileattr)) goto file_not_symlink; /* Check the file's extended attributes, if it has any. */ |