* path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.
This commit is contained in:
parent
735229ff4f
commit
63a149a18f
|
@ -1,3 +1,7 @@
|
||||||
|
2006-01-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.
|
||||||
|
|
||||||
2006-01-31 Corinna Vinschen <corinna@vinschen.de>
|
2006-01-31 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (cwdstuff::set): When SetCurrentDirectory returns
|
* path.cc (cwdstuff::set): When SetCurrentDirectory returns
|
||||||
|
|
|
@ -3978,7 +3978,8 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
|
||||||
/* When calling SetCurrentDirectory for a non-existant dir on a
|
/* When calling SetCurrentDirectory for a non-existant dir on a
|
||||||
Win9x share, it returns ERROR_INVALID_FUNCTION. */
|
Win9x share, it returns ERROR_INVALID_FUNCTION. */
|
||||||
if (GetLastError () == ERROR_INVALID_FUNCTION)
|
if (GetLastError () == ERROR_INVALID_FUNCTION)
|
||||||
SetLastError (ERROR_FILE_NOT_FOUND);
|
set_errno (ENOENT);
|
||||||
|
else
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue