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
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-02-25 12:19:35 +0300
committerCorinna Vinschen <corinna@vinschen.de>2001-02-25 12:19:35 +0300
commit80ed95f2ebe7d9351a51e00e6004ed000e597a59 (patch)
tree5abd5934d467705b597aa3fdf9168bc7d340acb8 /winsup
parentc350452a4119e2d9ca5379deaf281b47fe80065b (diff)
* shortcut.c: Change symlink condition.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/shortcut.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5c69aeeab..ca0d899ba 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Sun Feb 25 10:18:00 2001 Corinna Vinschen <corinna@vinschen.de>
+
+ * shortcut.c: Change symlink condition.
+
Fri Feb 23 10:42:00 2001 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (fhandler_disk_file::mmap): Use `addr' correctly.
diff --git a/winsup/cygwin/shortcut.c b/winsup/cygwin/shortcut.c
index 87db49a7c..5104abe41 100644
--- a/winsup/cygwin/shortcut.c
+++ b/winsup/cygwin/shortcut.c
@@ -15,6 +15,7 @@ details. */
#include <ctype.h>
#include <sys/types.h>
#include <sys/mount.h>
+#include <sys/strace.h>
#include <errno.h>
#include "shortcut.h"
@@ -125,9 +126,9 @@ check_shortcut (const char *path, DWORD fileattr, HANDLE h,
if (FAILED(hres))
goto close_it;
}
- /* It's a symlink. */
- *pflags = PATH_SYMLINK;
res = strlen (contents);
+ if (res) /* It's a symlink. */
+ *pflags = PATH_SYMLINK;
close_it:
/* Release the pointer to IPersistFile. */