diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-03 22:40:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-03 22:40:31 +0000 |
commit | cb366955f339ef1cdc965016dc7ba71e6bebdef8 (patch) | |
tree | 00b34067ed07f08b288ae9f18fed41c017b277f7 /src/ls.c | |
parent | 82a6fbda1cf17c680559f94da7d32397836abfa8 (diff) | |
download | coreutils-cb366955f339ef1cdc965016dc7ba71e6bebdef8.tar.xz |
(gobble_file) [USE_ACL]: Set have_acl member unconditionally
to avoid uninitialized memory reference via FILE_HAS_ACL.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1899,8 +1899,9 @@ gobble_file (const char *name, enum filetype type, int explicit_arg, } #if USE_ACL - if (! S_ISLNK (files[files_index].stat.st_mode)) - files[files_index].have_acl = (4 < acl (path, GETACLCNT, 0, NULL)); + 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) |