summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-12 18:37:25 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-12 18:37:25 +0100
commit34a3e4ecad5fd2042eb83ffcbf30379a536cc3ee (patch)
tree6006de7db363836737e4ceff908b333789075d02 /src/test
parent98cd2651988619bf606f0b27825440c4638a7e0b (diff)
cap-list: return lower-case capability names, similar to libcap's cap_to_name(), for compat reasons
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cap-list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test-cap-list.c b/src/test/test-cap-list.c
index dfa9a063c2..a536522646 100644
--- a/src/test/test-cap-list.c
+++ b/src/test/test-cap-list.c
@@ -39,6 +39,8 @@ int main(int argc, char *argv[]) {
assert_se(capability_from_name("asdfbsd") == -EINVAL);
assert_se(capability_from_name("CAP_AUDIT_READ") == CAP_AUDIT_READ);
+ assert_se(capability_from_name("cap_audit_read") == CAP_AUDIT_READ);
+ assert_se(capability_from_name("cAp_aUdIt_rEAd") == CAP_AUDIT_READ);
assert_se(capability_from_name("0") == 0);
assert_se(capability_from_name("15") == 15);
assert_se(capability_from_name("-1") == -EINVAL);