From 376ba20ac1f516361fc9c2b0267fbc5c131e4822 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 31 Jan 2015 10:05:10 +0200 Subject: [PATCH] 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 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ab1a748abce..fd211304ac5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2015-01-31 Eli Zaretskii + + * 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 Simplify read_dirent's MSDOS hacks diff --git a/src/dired.c b/src/dired.c index 931279a0764..5038e04cd01 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 -- 2.39.2