mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Correct parsing of Solaris default ACLs.
This commit is contained in:
parent
d35bcd3bbf
commit
b3fd17797d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129540
@ -1058,11 +1058,13 @@ __archive_entry_acl_parse_w(struct archive_entry *entry,
|
||||
if (sep != L':')
|
||||
goto fail;
|
||||
|
||||
if (prefix_w(start, end, L"default")) {
|
||||
/*
|
||||
* Solaris extension: "defaultuser::rwx" is the
|
||||
* default ACL corresponding to "user::rwx", etc.
|
||||
*/
|
||||
if (end-start > 7 && wmemcmp(start, L"default", 7) == 0) {
|
||||
type = ARCHIVE_ENTRY_ACL_TYPE_DEFAULT;
|
||||
next_field_w(&text, &start, &end, &sep);
|
||||
if (sep != L':')
|
||||
goto fail;
|
||||
start += 7;
|
||||
} else
|
||||
type = default_type;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user