mirror of
https://github.com/samba-team/samba.git
synced 2025-10-24 15:33:20 +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 commit is contained in:
committed by
Stefan Metzmacher
parent
d7e65da564
commit
7771f59ead
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user