Avoid infinite recursion in file_directory_p
* 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.
This commit is contained in:
@@ -2697,7 +2697,7 @@ See `file-symlink-p' to distinguish symlinks. */)
|
||||
bool
|
||||
file_directory_p (Lisp_Object file)
|
||||
{
|
||||
#ifdef WINDOWSNT
|
||||
#ifdef DOS_NT
|
||||
/* This is cheaper than 'stat'. */
|
||||
return faccessat (AT_FDCWD, SSDATA (file), D_OK, AT_EACCESS) == 0;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user