summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-06-03 14:15:08 +0000
committertrasz <trasz@FreeBSD.org>2010-06-03 14:15:08 +0000
commit0463f9931f9717fc66d7aa68fbbe014275fce16d (patch)
treecb830b55e6561542a03065060af568399bcdfb6b /lib/libc/posix1e
parent253bf0319dc35342eae91a3543a07ac723062335 (diff)
downloadFreeBSD-src-0463f9931f9717fc66d7aa68fbbe014275fce16d.zip
FreeBSD-src-0463f9931f9717fc66d7aa68fbbe014275fce16d.tar.gz
The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
Found with: Coverity Prevent CID: 6193
Diffstat (limited to 'lib/libc/posix1e')
-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 56396f9..86ec290 100644
--- a/lib/libc/posix1e/acl_entry.c
+++ b/lib/libc/posix1e/acl_entry.c
@@ -87,7 +87,7 @@ acl_create_entry_np(acl_t *acl_p, acl_entry_t *entry_p, int offset)
acl_int = &(*acl_p)->ats_acl;
- 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);
}
OpenPOWER on IntegriCloud