aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-01-23 16:50:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-01-23 16:50:17 +0000
commitadbd01afe4fb1e0154aaedde1a7de7f5f1a8f46b (patch)
tree802c5a70f3d60dddb9f66b83200f06c4c8472644 /winsup
parent9eda4ad4e30565df414f8f87a928bf39b9f20444 (diff)
downloadnewlib-adbd01afe4fb1e0154aaedde1a7de7f5f1a8f46b.zip
newlib-adbd01afe4fb1e0154aaedde1a7de7f5f1a8f46b.tar.gz
newlib-adbd01afe4fb1e0154aaedde1a7de7f5f1a8f46b.tar.bz2
* path.cc (symlink): Fix check for already existing file.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/path.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1045232..7f4358b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-23 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (symlink): Fix check for already existing file.
+
2002-01-21 Christopher Faylor <cgf@redhat.com>
* cygmagic: Suppress error output when figuring out if sum takes an
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index cfdd3ae..d237a5d 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2575,7 +2575,7 @@ symlink (const char *topath, const char *frompath)
}
win32_path.check (frompath, PC_SYM_NOFOLLOW);
- if (allow_winsymlinks && !win32_path.error)
+ if (allow_winsymlinks && !win32_path.exists ())
{
strcpy (from, frompath);
strcat (from, ".lnk");