changeset 5432:c3677267e74d

(file_name_completion_stat): If have symlinks, use lstat.
author Richard M. Stallman <rms@gnu.org>
date Tue, 04 Jan 1994 06:37:51 +0000
parents 164b8c470e47
children 7ac1e6f1565f
files src/dired.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Tue Jan 04 01:41:34 1994 +0000
+++ b/src/dired.c	Tue Jan 04 06:37:51 1994 +0000
@@ -467,7 +467,11 @@
   bcopy (dp->d_name, fullname + pos, len);
   fullname[pos + len] = 0;
 
+#ifdef S_IFLNK
+  return lstat (fullname, st_addr);
+#else
   return stat (fullname, st_addr);
+#endif
 }
 
 #ifdef VMS