Fix parsing of ACLs
commit62c0c3a78076607b98c3b6199b6b0542609558b4
authorSergey Poznyakoff <gray@gnu.org>
Sat, 24 Nov 2018 20:10:53 +0000 (24 22:10 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sat, 24 Nov 2018 20:10:53 +0000 (24 22:10 +0200)
treef5e740e45d2875d8a7bb406f294efabc00f97372
parentba472050da0c91f23d475ba43f8e940058f27f20
Fix parsing of ACLs

Text returned by acl_to_text can contain comments (introduced by #).
Strip comments and horizontal tabs prior to storing ACLs in PAX
headers.

* src/xattrs.c (xattrs_acls_cleanup): New function.
(xattrs__acls_get_a,xattrs__acls_get_d): Use xattrs_acls_cleanup.
src/xattrs.c