From: Paul Eggert Date: Thu, 5 Jul 2012 04:16:11 +0000 (-0700) Subject: * fileio.c (time_error_value): Check the right error number. X-Git-Tag: emacs-24.2.90~1199^2~212 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0497dc44b44f148425ff76c4cb7ef0d2ead9750b;p=emacs.git * fileio.c (time_error_value): Check the right error number. Problem reported by Troels Nielsen in . --- diff --git a/src/ChangeLog b/src/ChangeLog index d55b2474717..da769228190 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-07-05 Paul Eggert + + * fileio.c (time_error_value): Check the right error number. + Problem reported by Troels Nielsen in + . + 2012-07-04 Paul Eggert * window.c (set_window_hscroll): Revert the 100000 hscroll limit. 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);