mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-01 13:38:11 +02:00
(gobble_file) [USE_ACL]: Set have_acl member unconditionally
to avoid uninitialized memory reference via FILE_HAS_ACL.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user