Forgot to test the bitmask, oops.
This commit is contained in:
parent
cf91d0c9d8
commit
b9d7f41c8a
|
@ -356,12 +356,13 @@ get_oper_privs(int flags)
|
|||
*p = '\0';
|
||||
|
||||
for(i = 0; oper_flagtable[i].flag; i++)
|
||||
{
|
||||
if(i)
|
||||
rb_strlcat(buf, ", ", sizeof(buf));
|
||||
if (flags & oper_flagtable[i].flag)
|
||||
{
|
||||
if(i)
|
||||
rb_strlcat(buf, ", ", sizeof(buf));
|
||||
|
||||
rb_strlcat(buf, oper_flagtable[i].name, sizeof(buf));
|
||||
}
|
||||
rb_strlcat(buf, oper_flagtable[i].name, sizeof(buf));
|
||||
}
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue