emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 376ba20: Fix last commit, which confused WINDOWSNT


From: Eli Zaretskii
Subject: [Emacs-diffs] master 376ba20: Fix last commit, which confused WINDOWSNT with MSDOS.
Date: Sat, 31 Jan 2015 08:06:03 +0000

branch: master
commit 376ba20ac1f516361fc9c2b0267fbc5c131e4822
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Fix last commit, which confused WINDOWSNT with MSDOS.
    
     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 |    6 ++++++
 src/dired.c   |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index ab1a748..fd21130 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2015-01-31  Eli Zaretskii  <address@hidden>
+
+       * 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  <address@hidden>
 
        Simplify read_dirent's MSDOS hacks
diff --git a/src/dired.c b/src/dired.c
index 931279a..5038e04 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]