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
This commit is contained in:
trasz 2015-09-08 14:52:14 +00:00
parent e9b818f045
commit ca187714e1

View File

@ -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);
}