emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r108875: * fileio.c (time_error_value


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108875: * fileio.c (time_error_value): Check the right error number.
Date: Wed, 04 Jul 2012 21:16:11 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108875
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Wed 2012-07-04 21:16:11 -0700
message:
  * 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>.
modified:
  src/ChangeLog
  src/fileio.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-04 17:58:55 +0000
+++ b/src/ChangeLog     2012-07-05 04:16:11 +0000
@@ -1,3 +1,9 @@
+2012-07-05  Paul Eggert  <address@hidden>
+
+       * 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>.
+
 2012-07-04  Paul Eggert  <address@hidden>
 
        * window.c (set_window_hscroll): Revert the 100000 hscroll limit.

=== modified file 'src/fileio.c'
--- a/src/fileio.c      2012-07-04 17:11:11 +0000
+++ b/src/fileio.c      2012-07-05 04:16:11 +0000
@@ -3218,7 +3218,7 @@
 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);


reply via email to

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