aboutsummaryrefslogtreecommitdiff
path: root/libcap
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2008-01-30 23:08:16 -0800
committerJorge Lucangeli Obes <jorgelo@google.com>2015-09-03 14:13:03 -0700
commit597369a007f20080e13ffbe3a4dfed38897c7edc (patch)
treecf554605c23a3ac77d33ba3bde8327e0c0fe1722 /libcap
parentc2a25909b2c4d989e49cdedcac4dd52c45f0570b (diff)
downloadlibcap-597369a007f20080e13ffbe3a4dfed38897c7edc.tar.gz
This commit fixes some text -> cap# mapping and works with securebits patch.
Diffstat (limited to 'libcap')
-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);