mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 00:10:48 -08:00
(file_name_completion_stat): If have symlinks, use lstat.
This commit is contained in:
parent
3785d1c8a8
commit
a889bd0eff
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue