* src/ls.c (gobble_file): Make it so failure to stat a
authorJim Meyering <jim@meyering.net>
Tue, 25 Jul 2006 15:23:59 +0000 (15:23 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 25 Jul 2006 15:23:59 +0000 (15:23 +0000)
commit3a208b14048121755eb01377f985372561a4b953
tree4d8ca5fb2a8484f893b0943fe636fca4ae1aa0f7
parenta321dfb09d5bdf5a5b2bd91db42d0ea51b29972e
* src/ls.c (gobble_file): Make it so failure to stat a
non-command-line file provokes an exit status of 1, not 0.
Say "cannot access" rather than "cannot stat".
* tests/ls/stat-failed: New file/test, for the above.
* tests/ls/Makefile.am (TESTS): Add stat-failed.
ChangeLog
src/ls.c
tests/ls/Makefile.am
tests/ls/stat-failed [new file with mode: 0755]