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>
Thu, 14 Feb 2019 13:40:57 +0000 (14:40 +0100)
commitfa86b27e24afa54b8df18f48f55fbbef40b7c6a8
treef2da67e02378ae84f88d88886c566fb138ff4f10
parentb5709543631aaa9a198dbb726b1d302a1696410e
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