projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
479f51a
)
Avoid infinite recursion in file_directory_p
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 Feb 2018 10:45:53 +0000
(12:45 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 Feb 2018 10:45:53 +0000
(12:45 +0200)
* src/fileio.c (file_directory_p) [DOS_NT]: Call faccessat on
MS-DOS as well, to avoid infinite recursion introduced by last
change in this function.
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index b0ef3d4e91f8847af32bf2d25a45e240f76ac9a3..52ca8b6297ee15fdce2de71e5808b8ecf92c1420 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-2697,7
+2697,7
@@
See `file-symlink-p' to distinguish symlinks. */)
bool
file_directory_p (Lisp_Object file)
{
-#ifdef
WINDOWS
NT
+#ifdef
DOS_
NT
/* This is cheaper than 'stat'. */
return faccessat (AT_FDCWD, SSDATA (file), D_OK, AT_EACCESS) == 0;
#else