]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc (cwdstuff::set): When SetCurrentDirectory returns
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Jan 2006 14:43:37 +0000 (14:43 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 31 Jan 2006 14:43:37 +0000 (14:43 +0000)
ERROR_INVALID_FUNCTION, bend it over to ERROR_FILE_NOT_FOUND.  Add
comment to explain why.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc

index 596b05ab3fc0d8d50e637008a9d2e71623263db0..505a6b700a6c281144d9db9ff4118be62bc9b3f2 100644 (file)
@@ -1,3 +1,15 @@
+2006-01-31  Corinna Vinschen  <corinna@vinschen.de>
+
+       * path.cc (cwdstuff::set): When SetCurrentDirectory returns
+       ERROR_INVALID_FUNCTION, bend it over to ERROR_FILE_NOT_FOUND.  Add
+       comment to explain why.
+
+2006-01-31  Corinna Vinschen  <corinna@vinschen.de>
+
+       * dir.cc (readdir_worker): Add comment about writing old 32 bit d_ino.
+       * include/cygwin/version.h: Bump API minor number to 152.
+       (CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): Remove.
+
 2006-01-30  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Simplify
index a141c06fd1a8c001a47c0b2de77bcc24a03ffa9b..73ea908314abad5fe5c018af058279ce088168c1 100644 (file)
@@ -3975,6 +3975,10 @@ cwdstuff::set (const char *win32_cwd, const char *posix_cwd, bool doit)
        cwd_lock.acquire ();
        if (doit && !SetCurrentDirectory (win32_cwd))
         {
+           /* 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 ();
            goto out;
         }
This page took 0.031897 seconds and 5 git commands to generate.