diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2008-01-30 23:08:16 -0800 |
---|---|---|
committer | Jorge Lucangeli Obes <jorgelo@google.com> | 2015-09-03 14:13:03 -0700 |
commit | 597369a007f20080e13ffbe3a4dfed38897c7edc (patch) | |
tree | cf554605c23a3ac77d33ba3bde8327e0c0fe1722 /libcap | |
parent | c2a25909b2c4d989e49cdedcac4dd52c45f0570b (diff) | |
download | libcap-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.c | 2 |
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); |