git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab68fd
)
r25966: Don't force an 8 byte width to generated SIDs, as this can actually
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 15 Nov 2007 10:37:41 +0000
(11:37 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:45:22 +0000
(
05:45
+0100)
end up with a SID with a space in it.
Andrew Bartlett
(This used to be commit
7771f59eadf7045d852e60aa365036da230b41b9
)
source4/scripting/ejs/smbcalls_rand.c
patch
|
blob
|
history
diff --git
a/source4/scripting/ejs/smbcalls_rand.c
b/source4/scripting/ejs/smbcalls_rand.c
index d50cfc9504a59dbba6f82add60f712dde116051c..a2db1f0d6d8c040954dca5e594c541fe2d8d1205 100644
(file)
--- 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-%8
u",
+ char *s = talloc_asprintf(mprMemCtx(), "S-1-5-21-%
u-%u-%
u",
(unsigned)generate_random(),
(unsigned)generate_random(),
(unsigned)generate_random());