summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-05-13 16:44:27 +0000
committertrasz <trasz@FreeBSD.org>2010-05-13 16:44:27 +0000
commit645d8207e1305b71fb2354ae1ab7bd3a4257643a (patch)
tree02b335b580f4b1ac28265109b2c01c39f9d70038 /lib/libc/posix1e
parentb01f1cf8e0327e684c81ef23d61839ad46b887c1 (diff)
downloadFreeBSD-src-645d8207e1305b71fb2354ae1ab7bd3a4257643a.zip
FreeBSD-src-645d8207e1305b71fb2354ae1ab7bd3a4257643a.tar.gz
Make branding less intrusive - in acl_set(3), in case ACL brand
is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing. MFC after: 1 week
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r--lib/libc/posix1e/acl_branding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_branding.c b/lib/libc/posix1e/acl_branding.c
index 9839477..84b0063 100644
--- a/lib/libc/posix1e/acl_branding.c
+++ b/lib/libc/posix1e/acl_branding.c
@@ -129,6 +129,9 @@ _acl_type_not_valid_for_acl(const acl_t acl, acl_type_t type)
if (type == ACL_TYPE_ACCESS || type == ACL_TYPE_DEFAULT)
return (0);
break;
+
+ case ACL_BRAND_UNKNOWN:
+ return (0);
}
return (-1);
OpenPOWER on IntegriCloud