Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-05-25 12:31:57 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-05-25 12:31:57 +0400
commitfdc5ebe9bf51c34fe16cf678424c6c11f4e020cf (patch)
tree87bc42eaa42843310afc87d2d76519e804b51319 /winsup/cygwin/path.cc
parent86f41a0954e06824670215649c9fedc44d534331 (diff)
* path.cc (symlink_info::check): Add a check to return correctly
if incoming `*.lnk' file is not a symlink.
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 f2d3bd3c5..b9ca7ef62 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2690,7 +2690,7 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt)
}
/* If searching for `foo' and then finding a `foo.lnk' which is
no shortcut, return the same as if file not found. */
- if (!suffix.lnk_match ())
+ if (!suffix.lnk_match () || pathmatch(path, suffix.path))
goto file_not_symlink;
fileattr = (DWORD) -1;