* path.cc (symlink): Fix check for already existing file.

This commit is contained in:
Corinna Vinschen 2002-01-23 16:50:17 +00:00
parent 9eda4ad4e3
commit adbd01afe4
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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");