From: Paul Eggert Date: Mon, 11 Nov 2024 16:52:12 +0000 (-0800) Subject: build: update gnulib submodule to latest X-Git-Tag: v9.6~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87b887f96862f552e118f0e6ce5301f05a1e03d3;p=thirdparty%2Fcoreutils.git build: update gnulib submodule to latest This also fixes a problem with ls -Z when configured with --disable-acl, reported by Pádraig Brady . * src/ls.c (gobble_file): Pass ACL_GET_SCONTEXT to file_has_aclinfo, if -Z is used. --- diff --git a/gnulib b/gnulib index ee0bc69530..6a018d0492 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit ee0bc695303775da5026091a65e8ec2b764f4a26 +Subproject commit 6a018d0492239d01c2cc8fd56a1acec4d6fcd44d diff --git a/src/ls.c b/src/ls.c index 317a641adc..6ff0f410f2 100644 --- a/src/ls.c +++ b/src/ls.c @@ -3501,9 +3501,10 @@ gobble_file (char const *name, enum filetype type, ino_t inode, if ((format == long_format) | print_scontext | check_capability) { struct aclinfo ai; - int n = file_has_aclinfo_cache (full_name, f, &ai, - ((do_deref ? ACL_SYMLINK_FOLLOW : 0) - | filetype_d_type[type])); + int aclinfo_flags = ((do_deref ? ACL_SYMLINK_FOLLOW : 0) + | (print_scontext ? ACL_GET_SCONTEXT : 0) + | filetype_d_type[type]); + int n = file_has_aclinfo_cache (full_name, f, &ai, aclinfo_flags); bool have_acl = 0 < n; bool have_scontext = !ai.scontext_err; f->acl_type = (!have_scontext && !have_acl