From 3a208b14048121755eb01377f985372561a4b953 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 25 Jul 2006 15:23:59 +0000 Subject: * 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. --- tests/ls/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/ls/Makefile.am') diff --git a/tests/ls/Makefile.am b/tests/ls/Makefile.am index 7c6ae5ab0..fc8af7c55 100644 --- a/tests/ls/Makefile.am +++ b/tests/ls/Makefile.am @@ -3,6 +3,7 @@ AUTOMAKE_OPTIONS = 1.2 gnits TESTS = \ + stat-failed \ stat-dtype \ inode dangle file-type recursive dired infloop \ rt-1 time-1 symlink-slash follow-slink no-arg m-option \ -- cgit v1.2.3-70-g09d2