diff options
| author | Richard M. Stallman | 1994-01-04 06:37:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-04 06:37:51 +0000 |
| commit | a889bd0eff7f4d048b89dfdf5a3b0ae7248d83b3 (patch) | |
| tree | bc7b4e4f2c34154781adbe99256146145653f4e9 | |
| parent | 3785d1c8a89842d647ea02118b82017619d135c1 (diff) | |
| download | emacs-a889bd0eff7f4d048b89dfdf5a3b0ae7248d83b3.tar.gz emacs-a889bd0eff7f4d048b89dfdf5a3b0ae7248d83b3.zip | |
(file_name_completion_stat): If have symlinks, use lstat.
| -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) | |||
| 467 | bcopy (dp->d_name, fullname + pos, len); | 467 | bcopy (dp->d_name, fullname + pos, len); |
| 468 | fullname[pos + len] = 0; | 468 | fullname[pos + len] = 0; |
| 469 | 469 | ||
| 470 | #ifdef S_IFLNK | ||
| 471 | return lstat (fullname, st_addr); | ||
| 472 | #else | ||
| 470 | return stat (fullname, st_addr); | 473 | return stat (fullname, st_addr); |
| 474 | #endif | ||
| 471 | } | 475 | } |
| 472 | 476 | ||
| 473 | #ifdef VMS | 477 | #ifdef VMS |