diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-18 19:11:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-18 19:11:57 +0200 |
commit | 79747415d6db1f85389247522304c941b4287f9b (patch) | |
tree | d44f3b40dd6493d9f309e1e51101e7bfc87eb3b3 /util-linux | |
parent | fec2b1f79dc2f6bfd96f44719300f9c773d88208 (diff) | |
download | busybox-79747415d6db1f85389247522304c941b4287f9b.tar.gz |
setpriv: accept any case in capability names
This should work: setpriv --inh-caps -SyS_ReSOuRCE sh
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/setpriv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c index 5c532d637..76fb62c22 100644 --- a/util-linux/setpriv.c +++ b/util-linux/setpriv.c @@ -235,7 +235,7 @@ static void parse_cap(unsigned long *index, const char *cap) # if ENABLE_FEATURE_SETPRIV_CAPABILITY_NAMES for (i = 0; i < ARRAY_SIZE(capabilities); i++) { - if (strcmp(capabilities[i], cap) != 0) + if (strcasecmp(capabilities[i], cap) != 0) continue; if (!cap_valid(i)) |