]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r240087:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Oct 2012 08:47:05 +0000 (08:47 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 4 Oct 2012 08:47:05 +0000 (08:47 +0000)
commit83efb014dc225633c8aaa79977c7375f1eab717d
tree414c22c874d6262e7458ec1c42d0bc237ab330fb
parent2754b004a107f181822503054d98a97d2d1be1ab
MFC r240087:

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.

git-svn-id: svn://svn.freebsd.org/base/stable/9@241187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/setfacl/merge.c