emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 30026cf: Default PICKY_ACCESS to false on non-MS


From: Paul Eggert
Subject: [Emacs-diffs] master 30026cf: Default PICKY_ACCESS to false on non-MS
Date: Thu, 19 Sep 2019 03:22:08 -0400 (EDT)

branch: master
commit 30026cfe666e9647aeef73e26df5ffca2fa2c662
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Default PICKY_ACCESS to false on non-MS
    
    * src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false.
---
 src/fileio.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/fileio.c b/src/fileio.c
index 5337ea5..b2896c1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -257,12 +257,16 @@ file_attribute_errno (Lisp_Object file, int err)
    be checked further because they may be problems with an ancestor
    directory instead of with the file itself, which means that we
    don't have reliable info about the requested file.  In practice,
-   though, such errors are common enough that signaling them can be
-   annoying even if the errors are real (e.g., Bug#37445).  So return
-   nil for EACCES unless compiling with -DPICKY_EACCES, which is off
-   by default.  */
+   though, DOS_NT platforms set errno to EACCES for missing files like
+   "/var/mail", so signaling EACCES errors would be a mistake there.
+   So return nil for EACCES unless PICKY_EACCES, which is false by
+   default on DOS_NT.  */
 #ifndef PICKY_EACCES
+# ifdef DOS_NT
 enum { PICKY_EACCES = false };
+# else
+enum { PICKY_EACCES = true };
+# endif
 #endif
 
 Lisp_Object



reply via email to

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