* 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>.
This commit is contained in:
parent
e8d712837d
commit
0497dc44b4
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-07-05 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* 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 <eggert@cs.ucla.edu>
|
||||
|
||||
* window.c (set_window_hscroll): Revert the 100000 hscroll limit.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue