summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)