aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-07-04 21:16:11 -0700
committerPaul Eggert2012-07-04 21:16:11 -0700
commit0497dc44b44f148425ff76c4cb7ef0d2ead9750b (patch)
tree7bbed03b567e2e9c8c08ec2533a3254897b32b54 /src
parente8d712837dc25ae863406879a1ea39dba378aded (diff)
downloademacs-0497dc44b44f148425ff76c4cb7ef0d2ead9750b.tar.gz
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')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/fileio.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d55b2474717..da769228190 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12012-07-05 Paul Eggert <eggert@cs.ucla.edu>
2
3 * fileio.c (time_error_value): Check the right error number.
4 Problem reported by Troels Nielsen in
5 <http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00095.html>.
6
12012-07-04 Paul Eggert <eggert@cs.ucla.edu> 72012-07-04 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 * window.c (set_window_hscroll): Revert the 100000 hscroll limit. 9 * 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
3218time_error_value (int errnum) 3218time_error_value (int errnum)
3219{ 3219{
3220 EMACS_TIME t; 3220 EMACS_TIME t;
3221 int ns = (errno == ENOENT || errno == EACCES || errno == ENOTDIR 3221 int ns = (errnum == ENOENT || errnum == EACCES || errnum == ENOTDIR
3222 ? NONEXISTENT_MODTIME_NSECS 3222 ? NONEXISTENT_MODTIME_NSECS
3223 : UNKNOWN_MODTIME_NSECS); 3223 : UNKNOWN_MODTIME_NSECS);
3224 EMACS_SET_SECS_NSECS (t, 0, ns); 3224 EMACS_SET_SECS_NSECS (t, 0, ns);