1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 22:20:52 -08:00

Default PICKY_ACCESS to false on non-MS

* src/fileio.c (PICKY_EACCES) [!DOS_NT]: Default to false.
This commit is contained in:
Paul Eggert 2019-09-19 00:19:11 -07:00
parent dff4f9c759
commit 30026cfe66

View file

@ -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