aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2019-09-19 00:19:11 -0700
committerPaul Eggert2019-09-19 00:22:03 -0700
commit30026cfe666e9647aeef73e26df5ffca2fa2c662 (patch)
tree1102968b149b9045a2977c42804fbacb9c76d486 /src
parentdff4f9c759f5cf19047719716ea5ee8ffdc3006e (diff)
downloademacs-30026cfe666e9647aeef73e26df5ffca2fa2c662.tar.gz
emacs-30026cfe666e9647aeef73e26df5ffca2fa2c662.zip
Default PICKY_ACCESS to false on non-MS
* src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 5337ea5c800..b2896c1fe1e 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -257,12 +257,16 @@ file_attribute_errno (Lisp_Object file, int err)
257 be checked further because they may be problems with an ancestor 257 be checked further because they may be problems with an ancestor
258 directory instead of with the file itself, which means that we 258 directory instead of with the file itself, which means that we
259 don't have reliable info about the requested file. In practice, 259 don't have reliable info about the requested file. In practice,
260 though, such errors are common enough that signaling them can be 260 though, DOS_NT platforms set errno to EACCES for missing files like
261 annoying even if the errors are real (e.g., Bug#37445). So return 261 "/var/mail", so signaling EACCES errors would be a mistake there.
262 nil for EACCES unless compiling with -DPICKY_EACCES, which is off 262 So return nil for EACCES unless PICKY_EACCES, which is false by
263 by default. */ 263 default on DOS_NT. */
264#ifndef PICKY_EACCES 264#ifndef PICKY_EACCES
265# ifdef DOS_NT
265enum { PICKY_EACCES = false }; 266enum { PICKY_EACCES = false };
267# else
268enum { PICKY_EACCES = true };
269# endif
266#endif 270#endif
267 271
268Lisp_Object 272Lisp_Object