Date: Tue, 8 Sep 2015 14:52:15 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287562 - head/lib/libc/posix1e Message-ID: <201509081452.t88EqFLs037238@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509081452.t88EqFLs037238>