From 5057be3e8cef183fec85bb17f1d70db9b48ddb3e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 13 Feb 1999 16:36:24 +0000 Subject: [PATCH] (Ffile_regular_p): Use lstat. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 7fe5b002bbe..fd7322d7af4 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3111,7 +3111,7 @@ This is the sort of file that holds an ordinary stream of data bytes.") return (st.st_mode & S_IFMT) == S_IFREG ? Qt : Qnil; } #else - if (stat (XSTRING (absname)->data, &st) < 0) + if (lstat (XSTRING (absname)->data, &st) < 0) return Qnil; return (st.st_mode & S_IFMT) == S_IFREG ? Qt : Qnil; #endif -- 2.39.2