1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-23 20:59:10 +03:00

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 7771f59ead)
This commit is contained in:
Andrew Bartlett
2007-11-15 11:37:41 +01:00
committed by Stefan Metzmacher
parent fab68fd4d9
commit ef22b1a477

View File

@ -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());