changeset 24313:a9e60ce7973e

(Ffile_regular_p): Use lstat.
author Richard M. Stallman <rms@gnu.org>
date Sat, 13 Feb 1999 16:36:24 +0000
parents 24ffa91626d3
children 96aef9174003
files src/fileio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Sat Feb 13 16:28:34 1999 +0000
+++ b/src/fileio.c	Sat Feb 13 16:36:24 1999 +0000
@@ -3111,7 +3111,7 @@
     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