From 6dcfdb1d4b7d8936c6d549ffd3206f50ed61e9cf Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 Feb 2018 12:45:53 +0200 Subject: [PATCH] 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. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index b0ef3d4e91f..52ca8b6297e 100644 --- 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 WINDOWSNT +#ifdef DOS_NT /* This is cheaper than 'stat'. */ return faccessat (AT_FDCWD, SSDATA (file), D_OK, AT_EACCESS) == 0; #else -- 2.39.2