* 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>
|
2006-07-18 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* tty.cc (tty_list::terminate): Don't enter the busy loop if we don't
|
* 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 ());
|
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);
|
set_errno (EEXIST);
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user