Fix capability_index_list(), used e.g. in /stats ? capability output.

This commit is contained in:
Jilles Tjoelker 2012-07-03 19:15:25 +02:00
parent 89fd463e59
commit 33b214fa42

View file

@ -159,7 +159,7 @@ capability_index_list(struct CapabilityIndex *idx, unsigned int cap_mask)
DICTIONARY_FOREACH(entry, &iter, idx->cap_dict)
{
if (entry->value & cap_mask)
if ((1 << entry->value) & cap_mask)
{
tl = rb_sprintf(t, "%s ", entry->cap);
t += tl;