summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko2017-08-18 19:11:57 +0200
committerDenys Vlasenko2017-08-18 19:11:57 +0200
commit79747415d6db1f85389247522304c941b4287f9b (patch)
treed44f3b40dd6493d9f309e1e51101e7bfc87eb3b3 /util-linux
parentfec2b1f79dc2f6bfd96f44719300f9c773d88208 (diff)
downloadbusybox-79747415d6db1f85389247522304c941b4287f9b.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c
index 5c532d6..76fb62c 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))