From ba0605779e0e207161441c08afdfac57ed603f69 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 15 Sep 2019 20:17:43 -0700 Subject: [PATCH] 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. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) static struct timespec time_error_value (int errnum) { - int ns = (errnum == ENOENT || errnum == EACCES || errnum == ENOTDIR + int ns = (errnum == ENOENT || errnum == ENOTDIR ? NONEXISTENT_MODTIME_NSECS : UNKNOWN_MODTIME_NSECS); return make_timespec (0, ns); -- 2.39.5