]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix an error in setfacl(1) that manifested like this:
authortrasz <trasz@FreeBSD.org>
Tue, 4 Sep 2012 12:19:34 +0000 (12:19 +0000)
committertrasz <trasz@FreeBSD.org>
Tue, 4 Sep 2012 12:19:34 +0000 (12:19 +0000)
commit9e473fee552fcbe0a8739da0505cedb2119526de
tree0551f17f706806e8c46ba30542d561d79ae20727
parent0259eae71ddeae3d8d755dc42bbdc21e1016da04
Fix an error in setfacl(1) that manifested like this:

# setfacl -m u:trasz:rwx x
# setfacl -m u:root:rwx x
# getfacl x
# file: x
# owner: root
# group: wheel
user::rw-
user:root:rwx
user:trasz:rwx
group::r--
mask::rwx
other::r--
# setfacl -m u:root:rwx x
setfacl: x: acl_calc_mask() failed: Invalid argument
setfacl: x: failed to set ACL mask

For NFSv4 ACLs, this sort of situation would result in duplicated
entries.

MFC after: 1 month
bin/setfacl/merge.c