0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

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