summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_entry.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-10-28 11:58:18 +0000
committerbapt <bapt@FreeBSD.org>2015-10-28 11:58:18 +0000
commitc21ffb8d6aca32c9584cfa072f309a5890a21aea (patch)
treec13556877cfa7b8f6941e8141a6801cf91e72840 /lib/libc/posix1e/acl_entry.c
parentec14b01dd8898deebe0427357d842721add8e34c (diff)
parent39fb527bf90f6a5cb03d93bd49c310bbca016a45 (diff)
downloadFreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.zip
FreeBSD-src-c21ffb8d6aca32c9584cfa072f309a5890a21aea.tar.gz
Merge from head
Sponsored by: Gandi.net
Diffstat (limited to 'lib/libc/posix1e/acl_entry.c')
-rw-r--r--lib/libc/posix1e/acl_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c
index 3f8ca62..2cffaa3 100644
--- a/lib/libc/posix1e/acl_entry.c
+++ b/lib/libc/posix1e/acl_entry.c
@@ -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);
}
OpenPOWER on IntegriCloud