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:
Edward Tomasz Napierala 2015-09-08 14:52:14 +00:00
parent e945651a90
commit 45d55945fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287562

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