mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +08:00
* 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>
|
||||
|
||||
* path.cc (cwdstuff::set): When SetCurrentDirectory returns
|
||||
|
@ -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
|
||||
Win9x share, it returns ERROR_INVALID_FUNCTION. */
|
||||
if (GetLastError () == ERROR_INVALID_FUNCTION)
|
||||
SetLastError (ERROR_FILE_NOT_FOUND);
|
||||
__seterrno ();
|
||||
set_errno (ENOENT);
|
||||
else
|
||||
__seterrno ();
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user