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.
This commit is contained in:
Jilles Tjoelker 2012-07-03 19:16:31 +02:00
parent 33b214fa42
commit 8d20b088f9

View file

@ -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