diff options
| author | Eli Zaretskii | 2017-01-27 21:58:10 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-27 21:58:10 +0200 |
| commit | 3979d8f45784ccf80cebbb5007da054a87ded2c9 (patch) | |
| tree | 18e195c14975f97ab78c44bdf0b26596890d1ed9 | |
| parent | 2d07895151138fe4ddc87aa799687b41f6868c73 (diff) | |
| download | emacs-3979d8f45784ccf80cebbb5007da054a87ded2c9.tar.gz emacs-3979d8f45784ccf80cebbb5007da054a87ded2c9.zip | |
Restore a test that was removed by a recent commit
* src/fileio.c (Ffile_accessible_directory_p): Don't overwrite the
errno value unless it's necessary. (Bug#25419)
| -rw-r--r-- | src/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index b8706e1e893..81eaa771189 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2823,7 +2823,8 @@ really is a readable and searchable directory. */) | |||
| 2823 | avoids reporting "Success" for a failed operation. Perhaps | 2823 | avoids reporting "Success" for a failed operation. Perhaps |
| 2824 | someday we can fix this in a better way, by improving | 2824 | someday we can fix this in a better way, by improving |
| 2825 | file-accessible-directory-p's API; see Bug#25419. */ | 2825 | file-accessible-directory-p's API; see Bug#25419. */ |
| 2826 | errno = EACCES; | 2826 | if (!EQ (r, Qt)) |
| 2827 | errno = EACCES; | ||
| 2827 | 2828 | ||
| 2828 | return r; | 2829 | return r; |
| 2829 | } | 2830 | } |