Author: trasz
Date: Tue Sep 8 14:52:14 2015
New Revision: 287562
URL: https://svnweb.freebsd.org/changeset/base/287562
Log:
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
Modified:
head/lib/libc/posix1e/acl_entry.c
Modified: head/lib/libc/posix1e/acl_entry.c
==============================================================================
--- head/lib/libc/posix1e/acl_entry.c Tue Sep 8 12:25:41 2015
(r287561)
+++ head/lib/libc/posix1e/acl_entry.c Tue Sep 8 14:52:14 2015
(r287562)
@@ -91,7 +91,7 @@ acl_create_entry_np(acl_t *acl_p, acl_en
return (-1);
}
- if (offset < 0 || offset >= acl_int->acl_cnt) {
+ if (offset < 0 || offset > acl_int->acl_cnt) {
errno = EINVAL;
return (-1);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"