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:
parent
2d07895151
commit
3979d8f457
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue