aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcap/cap_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcap/cap_text.c b/libcap/cap_text.c
index c89e6d6..8c78977 100644
--- a/libcap/cap_text.c
+++ b/libcap/cap_text.c
@@ -236,7 +236,7 @@ int cap_from_name(const char *name, cap_value_t *value_p)
{
int n;
- if (((n = lookupname(&name)) < 0) && (value_p != NULL)) {
+ if (((n = lookupname(&name)) >= 0) && (value_p != NULL)) {
*value_p = (unsigned) n;
}
return -(n < 0);