From df01bf1b4d07b2173348f4e2a7721ab783c1fefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 4 May 2016 09:30:48 +0200 Subject: [PATCH] Displayed the SID revision as an unsigned number (cosmetic) Properly display a SID revision if it should ever reach 128. (suggested by Ulf Zibis) --- ntfsprogs/ntfssecaudit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntfsprogs/ntfssecaudit.c b/ntfsprogs/ntfssecaudit.c index b243badf..90923c0a 100644 --- a/ntfsprogs/ntfssecaudit.c +++ b/ntfsprogs/ntfssecaudit.c @@ -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