From 8d20b088f9ca17f6c0aaf5d15c950739f9922ae5 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 3 Jul 2012 19:16:31 +0200 Subject: [PATCH] In capability_get(), if a capability is not found, return 0 instead of all-ones. Returning all-ones will set all caps if an unknown cap name is passed. --- src/capability.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capability.c b/src/capability.c index f44b0a751..c999d6467 100644 --- a/src/capability.c +++ b/src/capability.c @@ -51,7 +51,7 @@ capability_get(struct CapabilityIndex *idx, const char *cap) if (entry != NULL && !(entry->flags & CAP_ORPHANED)) return (1 << entry->value); - return 0xFFFFFFFF; + return 0; } unsigned int