aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2008-01-30 23:08:16 -0800
committerAndrew G. Morgan <morgan@kernel.org>2008-01-30 23:10:16 -0800
commitddfb354d4e2c6a7f51e734cb917e5c6e68dfbd45 (patch)
treecf554605c23a3ac77d33ba3bde8327e0c0fe1722
parent0b82c4aad935ad68505294996964e63b003d6b54 (diff)
downloadlibcap-ddfb354d4e2c6a7f51e734cb917e5c6e68dfbd45.tar.gz
This commit fixes some text -> cap# mapping and works with securebits patch.
-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);