]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Jan 2006 16:10:29 +0000 (16:10 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Jan 2006 16:10:29 +0000 (16:10 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index 505a6b700a6c281144d9db9ff4118be62bc9b3f2..0c467fdedc99e8dc79d966c4809e465437406f35 100644 (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>
 
        * path.cc (cwdstuff::set): When SetCurrentDirectory returns
index 73ea908314abad5fe5c018af058279ce088168c1..f23debb8a78e3c79f4ffaf529d0b57f22100ed42 100644 (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
               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;
         }
     }
This page took 0.03321 seconds and 5 git commands to generate.