diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2008-01-30 23:08:16 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2008-01-30 23:10:16 -0800 |
commit | ddfb354d4e2c6a7f51e734cb917e5c6e68dfbd45 (patch) | |
tree | cf554605c23a3ac77d33ba3bde8327e0c0fe1722 | |
parent | 0b82c4aad935ad68505294996964e63b003d6b54 (diff) | |
download | libcap-ddfb354d4e2c6a7f51e734cb917e5c6e68dfbd45.tar.gz |
This commit fixes some text -> cap# mapping and works with securebits patch.
-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); |