capability: fix string comparison in cap_name_to_number
authorMark Marshall <mark.marshall@omicronenergy.com>
Fri, 18 Jan 2019 08:10:34 +0000 (09:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 21 Jan 2019 11:50:37 +0000 (12:50 +0100)
commit11cb9eeffec0e2575c8722e83de3116f81b61b4f
tree7e58fd78e22a6c5a02f16299572ec61f880739ce
parentfc472ea18793d8000c6f4ec1cd06c28c05340879
capability: fix string comparison in cap_name_to_number

The result of strcasecmp was being used incorrectly.  This function
returns 0 if the strings match.

Signed-off-by: Mark Marshall <mark.marshall@omicronenergy.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/capability.c