From ca187714e1fcef905c8848993699cca225982268 Mon Sep 17 00:00:00 2001 From: trasz Date: Tue, 8 Sep 2015 14:52:14 +0000 Subject: 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 --- lib/libc/posix1e/acl_entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/posix1e/acl_entry.c') 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); } -- cgit v1.1