diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c index b8b9189719b..e0b9533fa60 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1450,7 +1450,8 @@ static Lisp_Object Qdir_ok; | |||
| 1450 | but store the found remote file name in *STOREPTR. | 1450 | but store the found remote file name in *STOREPTR. |
| 1451 | 1451 | ||
| 1452 | If NEWER is true, try all SUFFIXes and return the result for the | 1452 | If NEWER is true, try all SUFFIXes and return the result for the |
| 1453 | newest file that exists. Does not apply to remote files. */ | 1453 | newest file that exists. Does not apply to remote files, |
| 1454 | or if PREDICATE is specified. */ | ||
| 1454 | 1455 | ||
| 1455 | int | 1456 | int |
| 1456 | openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, | 1457 | openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, |
| @@ -1623,7 +1624,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, | |||
| 1623 | 1624 | ||
| 1624 | if (fd >= 0) | 1625 | if (fd >= 0) |
| 1625 | { | 1626 | { |
| 1626 | if (newer) | 1627 | if (newer && !NATNUMP (predicate)) |
| 1627 | { | 1628 | { |
| 1628 | struct timespec mtime = get_stat_mtime (&st); | 1629 | struct timespec mtime = get_stat_mtime (&st); |
| 1629 | 1630 | ||