aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2019-09-15 20:17:43 -0700
committerPaul Eggert2019-09-15 20:18:06 -0700
commitba0605779e0e207161441c08afdfac57ed603f69 (patch)
treebc4025b411824a01acfdc7b2b1233f65f114b979
parentde3daf063987dfc2a28cd5071b8f77446c7312e0 (diff)
downloademacs-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.c2
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)
3612static struct timespec 3612static struct timespec
3613time_error_value (int errnum) 3613time_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);