diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2010-06-03 14:16:58 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2010-06-03 14:16:58 +0000 |
commit | 18c12a53a1b625f4cf92ded54c4da53ecaf296cd (patch) | |
tree | 030b95fb477c6eb5a6f0f335ceb1f5fed7036d11 | |
parent | d243a85e998bfca7ea175a1128ac085c5cd38125 (diff) |
Notes
-rw-r--r-- | lib/libc/posix1e/acl_entry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c index 86ec29056656d..3f8ca62c8b00e 100644 --- a/lib/libc/posix1e/acl_entry.c +++ b/lib/libc/posix1e/acl_entry.c @@ -55,8 +55,7 @@ acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p) * +1, because we are checking if there is space left for one more * entry. */ - if ((acl_int->acl_cnt + 1 >= ACL_MAX_ENTRIES) || - (acl_int->acl_cnt < 0)) { + if (acl_int->acl_cnt + 1 >= ACL_MAX_ENTRIES) { errno = EINVAL; return (-1); } |