summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-01-04 06:37:51 +0000
committerRichard M. Stallman <rms@gnu.org>1994-01-04 06:37:51 +0000
commit1e31f686c3e88d62c0df130e52240b8f277d83d6 (patch)
tree1a43fc5cb62cf20bf7f2371d348cfa76d9faa20b /src/dired.c
parentd4bdc427b5cc518e34b5422714520cbe413bb0f7 (diff)
downloademacs-1e31f686c3e88d62c0df130e52240b8f277d83d6.tar.gz
(file_name_completion_stat): If have symlinks, use lstat.
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c
index 410729fe3dc..203899e43a5 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -467,7 +467,11 @@ file_name_completion_stat (dirname, dp, st_addr)
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