git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69ef2b3
)
s3: Remove talloc_autofree_context() from get_root_nt_token()
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Sep 2010 22:46:36 +0000
(15:46 -0700)
committer
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 01:29:27 +0000
(
03:29
+0200)
The memcache_add_talloc() later on steals it anyway
source3/auth/token_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/token_util.c
b/source3/auth/token_util.c
index f88a88aba249e9e977bdf8d1a09b1dcc2756895f..8666f88a2d542be6f85508af2f7e7d064a57bbed 100644
(file)
--- a/
source3/auth/token_util.c
+++ b/
source3/auth/token_util.c
@@
-109,7
+109,7
@@
struct security_token *get_root_nt_token( void )
uid_to_sid(&u_sid, pw->pw_uid);
gid_to_sid(&g_sid, pw->pw_gid);
- token = create_local_nt_token(talloc_
autofree_context
(), &u_sid, False,
+ token = create_local_nt_token(talloc_
tos
(), &u_sid, False,
1, &global_sid_Builtin_Administrators);
security_token_set_privilege(token, SEC_PRIV_DISK_OPERATOR);