From ef22b1a477e11d0036ca9e267c751b67d2bc541c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 15 Nov 2007 11:37:41 +0100 Subject: r25966: Don't force an 8 byte width to generated SIDs, as this can actually end up with a SID with a space in it. Andrew Bartlett (This used to be commit 7771f59eadf7045d852e60aa365036da230b41b9) --- source4/scripting/ejs/smbcalls_rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/scripting/ejs/smbcalls_rand.c b/source4/scripting/ejs/smbcalls_rand.c index d50cfc9504..a2db1f0d6d 100644 --- a/source4/scripting/ejs/smbcalls_rand.c +++ b/source4/scripting/ejs/smbcalls_rand.c @@ -70,7 +70,7 @@ static int ejs_randguid(MprVarHandle eid, int argc, struct MprVar **argv) */ static int ejs_randsid(MprVarHandle eid, int argc, struct MprVar **argv) { - char *s = talloc_asprintf(mprMemCtx(), "S-1-5-21-%8u-%8u-%8u", + char *s = talloc_asprintf(mprMemCtx(), "S-1-5-21-%u-%u-%u", (unsigned)generate_random(), (unsigned)generate_random(), (unsigned)generate_random()); -- cgit