* path.cc (symlink_worker): Return EEXIST if newpath exists.
This commit is contained in:
parent
3438293a0b
commit
ef4954b62d
|
@ -1,3 +1,7 @@
|
|||
2006-07-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* path.cc (symlink_worker): Return EEXIST if newpath exists.
|
||||
|
||||
2006-07-18 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* tty.cc (tty_list::terminate): Don't enter the busy loop if we don't
|
||||
|
|
|
@ -2757,7 +2757,8 @@ symlink_worker (const char *oldpath, const char *newpath, bool use_winsym,
|
|||
|
||||
syscall_printf ("symlink (%s, %s)", oldpath, win32_path.get_win32 ());
|
||||
|
||||
if (win32_path.is_auto_device ())
|
||||
if ((!isdevice && win32_path.exists ())
|
||||
|| win32_path.is_auto_device ())
|
||||
{
|
||||
set_errno (EEXIST);
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue