mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
e945651a90
commit
45d55945fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287562
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue