From: Jim Meyering Date: Sun, 31 Dec 2000 08:33:49 +0000 (+0000) Subject: (gobble_file): If not using long format, don't invoke acl; it's not needed. X-Git-Tag: FILEUTILS-4_0_36~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66816a3514258759a1d264a8b4c204cfc7bc3361;p=thirdparty%2Fcoreutils.git (gobble_file): If not using long format, don't invoke acl; it's not needed. --- diff --git a/src/ls.c b/src/ls.c index 4676258166..ed1783da7e 100644 --- a/src/ls.c +++ b/src/ls.c @@ -1899,9 +1899,10 @@ gobble_file (const char *name, enum filetype type, int explicit_arg, } #if USE_ACL - files[files_index].have_acl = - (! S_ISLNK (files[files_index].stat.st_mode) - && 4 < acl (path, GETACLCNT, 0, NULL)); + if (format == long_format) + files[files_index].have_acl = + (! S_ISLNK (files[files_index].stat.st_mode) + && 4 < acl (path, GETACLCNT, 0, NULL)); #endif if (S_ISLNK (files[files_index].stat.st_mode)