* path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.

This commit is contained in:
Corinna Vinschen 2006-01-31 16:10:29 +00:00
parent 735229ff4f
commit 63a149a18f
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -3978,8 +3978,9 @@ 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);
__seterrno (); else
__seterrno ();
goto out; goto out;
} }
} }