summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-31 08:33:49 +0000
committerJim Meyering <jim@meyering.net>2000-12-31 08:33:49 +0000
commit66816a3514258759a1d264a8b4c204cfc7bc3361 (patch)
treedf0abb343d0981b8a561a2ce3489e348182196cc /src
parent6417617d33ebd6d72ef4920a7522db1d927ba521 (diff)
downloadcoreutils-66816a3514258759a1d264a8b4c204cfc7bc3361.tar.xz
(gobble_file): If not using long format, don't invoke acl; it's not needed.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index 467625816..ed1783da7 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)