diff options
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 12 |
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 | ||
| 265 | enum { PICKY_EACCES = false }; | 266 | enum { PICKY_EACCES = false }; |
| 267 | # else | ||
| 268 | enum { PICKY_EACCES = true }; | ||
| 269 | # endif | ||
| 266 | #endif | 270 | #endif |
| 267 | 271 | ||
| 268 | Lisp_Object | 272 | Lisp_Object |