Fix another bug: ls --indicator-style=file-type would call
authorJim Meyering <jim@meyering.net>
Fri, 21 Jul 2006 08:49:24 +0000 (08:49 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 21 Jul 2006 08:49:24 +0000 (08:49 +0000)
commit9e0a095be648284bdc8a47d2b01120fdb01c001f
treecb0053ddc797acfd3d54826a0112653883a3063c
parent2060c55141708d2ff09cc34d27c0a2a856a21c28
Fix another bug: ls --indicator-style=file-type would call
stat for a symlink, even though it wasn't always needed.
In some cases, that unnecessary stat would cause ls to fail.
* src/ls.c (gobble_file): Don't treat symlinks specially (in
requiring a stat syscall).  Remove the offending exclusion.
* NEWS: Mention the fix.
* tests/ls/stat-dtype: New file/test, for the above fix.
Also exercises the new df feature, below.
ChangeLog
NEWS
src/ls.c
tests/ls/Makefile.am
tests/ls/stat-dtype [new file with mode: 0755]