From: Eli Zaretskii Date: Fri, 27 Jan 2017 19:58:10 +0000 (+0200) Subject: Restore a test that was removed by a recent commit X-Git-Tag: emacs-26.0.90~870^2~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3979d8f45784ccf80cebbb5007da054a87ded2c9;p=emacs.git 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) --- 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; }