diff options
-rw-r--r-- | libbb/capability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/capability.c b/libbb/capability.c index 6587dcb..d0ae78b 100644 --- a/libbb/capability.c +++ b/libbb/capability.c @@ -67,7 +67,7 @@ unsigned FAST_FUNC cap_name_to_number(const char *cap) goto found; } for (i = 0; i < ARRAY_SIZE(capabilities); i++) { - if (strcasecmp(capabilities[i], cap) != 0) + if (strcasecmp(capabilities[i], cap) == 0) goto found; } bb_error_msg_and_die("unknown capability '%s'", cap); |