The branch, v3-2-test has been updated via aec5f1512660953168a2c55b2890cd6c076b8a92 (commit) from f98082ccf048a2de6fea8d922264879305b3d2c8 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log ----------------------------------------------------------------- commit aec5f1512660953168a2c55b2890cd6c076b8a92 Author: Volker Lendecke <[EMAIL PROTECTED]> Date: Mon Dec 10 11:47:17 2007 +0100 Correctly unbecome_root() on error ----------------------------------------------------------------------- Summary of changes: source/auth/token_util.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/auth/token_util.c b/source/auth/token_util.c index bc6bea5..63672bc 100644 --- a/source/auth/token_util.c +++ b/source/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; } -- Samba Shared Repository