diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-04 21:16:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-04 21:16:11 -0700 |
commit | 0497dc44b44f148425ff76c4cb7ef0d2ead9750b (patch) | |
tree | 7bbed03b567e2e9c8c08ec2533a3254897b32b54 /src/fileio.c | |
parent | e8d712837dc25ae863406879a1ea39dba378aded (diff) | |
download | emacs-0497dc44b44f148425ff76c4cb7ef0d2ead9750b.tar.gz emacs-0497dc44b44f148425ff76c4cb7ef0d2ead9750b.tar.bz2 emacs-0497dc44b44f148425ff76c4cb7ef0d2ead9750b.zip |
* fileio.c (time_error_value): Check the right error number.
Problem reported by Troels Nielsen in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>.
Diffstat (limited to 'src/fileio.c')
-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 5905c0e5511..69ec7b05392 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3218,7 +3218,7 @@ static EMACS_TIME time_error_value (int errnum) { EMACS_TIME t; - int ns = (errno == ENOENT || errno == EACCES || errno == ENOTDIR + int ns = (errnum == ENOENT || errnum == EACCES || errnum == ENOTDIR ? NONEXISTENT_MODTIME_NSECS : UNKNOWN_MODTIME_NSECS); EMACS_SET_SECS_NSECS (t, 0, ns); |