diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-31 08:33:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-31 08:33:49 +0000 |
commit | 66816a3514258759a1d264a8b4c204cfc7bc3361 (patch) | |
tree | df0abb343d0981b8a561a2ce3489e348182196cc /src/ls.c | |
parent | 6417617d33ebd6d72ef4920a7522db1d927ba521 (diff) | |
download | coreutils-66816a3514258759a1d264a8b4c204cfc7bc3361.tar.xz |
(gobble_file): If not using long format, don't invoke acl; it's not needed.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |