emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master ba06057: Fix unknown-vs-nonexistent glitch for file


From: Paul Eggert
Subject: [Emacs-diffs] master ba06057: Fix unknown-vs-nonexistent glitch for file timestamps
Date: Sun, 15 Sep 2019 23:18:11 -0400 (EDT)

branch: master
commit ba0605779e0e207161441c08afdfac57ed603f69
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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 da32d6c..34afbc2 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]