]> code.delx.au - gnu-emacs/commitdiff
Fix last commit, which confused WINDOWSNT with MSDOS.
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 Jan 2015 08:05:10 +0000 (10:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 Jan 2015 08:05:10 +0000 (10:05 +0200)
 src/dired.c (read_dirent): Correct the "MSDOS hacks" hack: the
 special code for errno = ENOENT or EACCES is needed for WINDOWSNT,
 not for MSDOS.

src/ChangeLog
src/dired.c

index ab1a748abce9224b8be4499ca150de31c2f53358..fd211304ac56e87be43c95fb3fa53aedeee2ef52 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-31  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (read_dirent): Correct the "MSDOS hacks" hack: the
+       special code for errno = ENOENT or EACCES is needed for WINDOWSNT,
+       not for MSDOS.
+
 2015-01-31  Paul Eggert  <eggert@cs.ucla.edu>
 
        Simplify read_dirent's MSDOS hacks
index 931279a0764bf262233e980fb652a750f166c887..5038e04cd014eedeb6bc2ccf39a25e27b7f2487f 100644 (file)
@@ -137,7 +137,7 @@ read_dirent (DIR *dir, Lisp_Object dirname)
        return dp;
       if (! (errno == EAGAIN || errno == EINTR))
        {
-#ifdef MSDOS
+#ifdef WINDOWSNT
          /* The MS-Windows implementation of 'opendir' doesn't
             actually open a directory until the first call to
             'readdir'.  If 'readdir' fails to open the directory, it