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:
parent
33b214fa42
commit
8d20b088f9
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ capability_get(struct CapabilityIndex *idx, const char *cap)
|
||||||
if (entry != NULL && !(entry->flags & CAP_ORPHANED))
|
if (entry != NULL && !(entry->flags & CAP_ORPHANED))
|
||||||
return (1 << entry->value);
|
return (1 << entry->value);
|
||||||
|
|
||||||
return 0xFFFFFFFF;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int
|
unsigned int
|
||||||
|
|
Loading…
Reference in a new issue