+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
/* 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;
}
}