summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-09-08 14:52:14 +0000
committertrasz <trasz@FreeBSD.org>2015-09-08 14:52:14 +0000
commitca187714e1fcef905c8848993699cca225982268 (patch)
tree994ab8dce8dd6d255f9120f1efc2c56f7c11964c /lib
parente9b818f0457b217d1dbfe988ab629bd070871bb2 (diff)
downloadFreeBSD-src-ca187714e1fcef905c8848993699cca225982268.zip
FreeBSD-src-ca187714e1fcef905c8848993699cca225982268.tar.gz
Make it possible to use acl_create_entry_np(3) to use first entry to an
empty ACL, and to append an entry to an ACL. Submitted by: sef@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/posix1e/acl_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c
index 3f8ca62..2cffaa3 100644
--- a/lib/libc/posix1e/acl_entry.c
+++ b/lib/libc/posix1e/acl_entry.c
@@ -91,7 +91,7 @@ acl_create_entry_np(acl_t *acl_p, acl_entry_t *entry_p, int offset)
return (-1);
}
- if (offset < 0 || offset >= acl_int->acl_cnt) {
+ if (offset < 0 || offset > acl_int->acl_cnt) {
errno = EINVAL;
return (-1);
}
OpenPOWER on IntegriCloud