]> git.ipfire.org Git - thirdparty/tar.git/commit
Honor --numeric-owner when storing ACL entries
authorSergey Poznyakoff <gray@gnu.org>
Thu, 18 May 2023 10:35:50 +0000 (13:35 +0300)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 18 May 2023 10:35:50 +0000 (13:35 +0300)
commit5461025569c2d946fb31b79f16f60e923bbd79f9
tree89fc234541fde5fd7789db702d6e19025803d82f
parent3f2b847dddd7ee78c12502c89cb52701c481268d
Honor --numeric-owner when storing ACL entries

Based on patch from Fabian Grünbichler <f.gruenbichler@proxmox.com>

* src/xattrs.c (acls_get_text): New function.  If given --numeric-owner,
use acl_to_any_text to convert ACL to textual representation.  Print
warning if that function is not available.
(xattrs__acls_get_a, xattrs__acls_get_d): Use acls_get_text.
src/xattrs.c