From 9e0a095be648284bdc8a47d2b01120fdb01c001f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 21 Jul 2006 08:49:24 +0000 Subject: 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. --- 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 87f20405f..7c6ae5ab0 100644 --- a/tests/ls/Makefile.am +++ b/tests/ls/Makefile.am @@ -3,6 +3,7 @@ AUTOMAKE_OPTIONS = 1.2 gnits TESTS = \ + stat-dtype \ inode dangle file-type recursive dired infloop \ rt-1 time-1 symlink-slash follow-slink no-arg m-option \ stat-vs-dirent -- cgit v1.2.3-70-g09d2