git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2585232
)
Correctly unbecome_root() on error
author
Volker Lendecke
<vl@samba.org>
Mon, 10 Dec 2007 10:47:17 +0000
(11:47 +0100)
committer
Michael Adam
<obnox@samba.org>
Mon, 10 Dec 2007 11:37:37 +0000
(12:37 +0100)
(This used to be commit
aec5f1512660953168a2c55b2890cd6c076b8a92
)
source3/auth/token_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/token_util.c
b/source3/auth/token_util.c
index bc6bea5d29cfb5162cbb1126c3b232d82bbec3b0..63672bcf743fffae5fe622fcaca263bc40bf86fe 100644
(file)
--- a/
source3/auth/token_util.c
+++ b/
source3/auth/token_util.c
@@
-395,6
+395,7
@@
struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
status = add_aliases(get_global_sam_sid(), result);
if (!NT_STATUS_IS_OK(status)) {
+ unbecome_root();
TALLOC_FREE(result);
return NULL;
}
@@
-404,6
+405,7
@@
struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
status = add_aliases(&global_sid_Builtin, result);
if (!NT_STATUS_IS_OK(status)) {
+ unbecome_root();
TALLOC_FREE(result);
return NULL;
}