acl: fixed ACL ID mapping for non-root

closes issue #618
This commit is contained in:
Andrew Tridgell
2026-01-19 11:14:40 +11:00
parent 50f0add12a
commit 43e2af4dd3

2
acls.c
View File

@@ -713,7 +713,7 @@ static uchar recv_ida_entries(int f, ida_entries *ent)
else
id = recv_group_name(f, id, NULL);
} else if (access & NAME_IS_USER) {
if (inc_recurse && am_root && !numeric_ids)
if (inc_recurse && !numeric_ids)
id = match_uid(id);
} else {
if (inc_recurse && (!am_root || !numeric_ids))