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)
This commit is contained in:
Eli Zaretskii 2017-01-27 21:58:10 +02:00
parent 2d07895151
commit 3979d8f457

View file

@ -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;
}