Commit 5057be3e authored by Richard M. Stallman's avatar Richard M. Stallman

(Ffile_regular_p): Use lstat.

parent 8005ea3f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment