Commit ba060577 authored by Paul Eggert's avatar Paul Eggert

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.
parent de3daf06
Pipeline #3146 failed with stage
in 90 minutes and 2 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment