diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-01-04 06:37:51 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-01-04 06:37:51 +0000 |
commit | 1e31f686c3e88d62c0df130e52240b8f277d83d6 (patch) | |
tree | 1a43fc5cb62cf20bf7f2371d348cfa76d9faa20b /src/dired.c | |
parent | d4bdc427b5cc518e34b5422714520cbe413bb0f7 (diff) | |
download | emacs-1e31f686c3e88d62c0df130e52240b8f277d83d6.tar.gz |
(file_name_completion_stat): If have symlinks, use lstat.
Diffstat (limited to 'src/dired.c')
-rw-r--r-- | src/dired.c | 4 |
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 |