Displayed the SID revision as an unsigned number (cosmetic)

Properly display a SID revision if it should ever reach 128.
(suggested by Ulf Zibis)
pull/2/head
Jean-Pierre André 2016-05-04 09:30:48 +02:00
parent 1b8b599408
commit df01bf1b4d
1 changed files with 2 additions and 2 deletions

View File

@ -1109,12 +1109,12 @@ static void showsid(const char *attr, int off, const char *prefix, int level)
}
if (!known)
printf("%*cUnknown SID\n",-level,marker);
printf("%*c%shex S-%d-",-level,marker,prefix,attr[off] & 255);
printf("%*c%shex S-%x-",-level,marker,prefix,attr[off] & 255);
printf("%llx",(long long)auth);
for (i=0; i<cnt; i++)
printf("-%lx",get4l(attr,off+8+4*i));
printf("\n");
printf("%*c%sdec S-%d-",-level,marker,prefix,attr[off] & 255);
printf("%*c%sdec S-%u-",-level,marker,prefix,attr[off] & 255);
printf("%llu",(long long)auth);
for (i=0; i<cnt; i++)
printf("-%lu",get4l(attr,off+8+4*i));