diff options
| author | Paul Eggert | 2019-09-15 20:17:43 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-09-15 20:18:06 -0700 |
| commit | ba0605779e0e207161441c08afdfac57ed603f69 (patch) | |
| tree | bc4025b411824a01acfdc7b2b1233f65f114b979 | |
| parent | de3daf063987dfc2a28cd5071b8f77446c7312e0 (diff) | |
| download | emacs-ba0605779e0e207161441c08afdfac57ed603f69.tar.gz emacs-ba0605779e0e207161441c08afdfac57ed603f69.zip | |
Fix unknown-vs-nonexistent glitch for file timestamps
* src/fileio.c (time_error_value): EACCES means the file
timestamp is unknown, not that the file does not exist.
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index da32d6c095c..34afbc23da7 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3612,7 +3612,7 @@ file_offset (Lisp_Object val) | |||
| 3612 | static struct timespec | 3612 | static struct timespec |
| 3613 | time_error_value (int errnum) | 3613 | time_error_value (int errnum) |
| 3614 | { | 3614 | { |
| 3615 | int ns = (errnum == ENOENT || errnum == EACCES || errnum == ENOTDIR | 3615 | int ns = (errnum == ENOENT || errnum == ENOTDIR |
| 3616 | ? NONEXISTENT_MODTIME_NSECS | 3616 | ? NONEXISTENT_MODTIME_NSECS |
| 3617 | : UNKNOWN_MODTIME_NSECS); | 3617 | : UNKNOWN_MODTIME_NSECS); |
| 3618 | return make_timespec (0, ns); | 3618 | return make_timespec (0, ns); |