summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-01-27 21:58:10 +0200
committerEli Zaretskii <eliz@gnu.org>2017-01-27 21:58:10 +0200
commit3979d8f45784ccf80cebbb5007da054a87ded2c9 (patch)
tree18e195c14975f97ab78c44bdf0b26596890d1ed9
parent2d07895151138fe4ddc87aa799687b41f6868c73 (diff)
downloademacs-3979d8f45784ccf80cebbb5007da054a87ded2c9.tar.gz
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.c3
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. */)
avoids reporting "Success" for a failed operation. Perhaps
someday we can fix this in a better way, by improving
file-accessible-directory-p's API; see Bug#25419. */
- errno = EACCES;
+ if (!EQ (r, Qt))
+ errno = EACCES;
return r;
}