Forgot to test the bitmask, oops.
This commit is contained in:
parent
0866cef3c1
commit
032515f48c
1 changed files with 6 additions and 5 deletions
|
@ -356,6 +356,7 @@ get_oper_privs(int flags)
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
for(i = 0; oper_flagtable[i].flag; i++)
|
for(i = 0; oper_flagtable[i].flag; i++)
|
||||||
|
if (flags & oper_flagtable[i].flag)
|
||||||
{
|
{
|
||||||
if(i)
|
if(i)
|
||||||
rb_strlcat(buf, ", ", sizeof(buf));
|
rb_strlcat(buf, ", ", sizeof(buf));
|
||||||
|
|
Loading…
Reference in a new issue