From aff3769d9fb9aff84428c6edb091b7d172d778b8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 4 May 2012 13:01:32 +0200 Subject: s3: remove some unused code --- source3/auth/auth_util.c | 27 --------------------------- source3/auth/proto.h | 1 - 2 files changed, 28 deletions(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index de395a5674..607523255e 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1177,33 +1177,6 @@ const struct auth_session_info *get_session_info_system(void) return system_info; } -bool copy_current_user(struct current_user *dst, struct current_user *src) -{ - gid_t *groups; - struct security_token *nt_token; - - groups = (gid_t *)memdup(src->ut.groups, - sizeof(gid_t) * src->ut.ngroups); - if ((src->ut.ngroups != 0) && (groups == NULL)) { - return false; - } - - nt_token = dup_nt_token(NULL, src->nt_user_token); - if (nt_token == NULL) { - SAFE_FREE(groups); - return false; - } - - dst->conn = src->conn; - dst->vuid = src->vuid; - dst->ut.uid = src->ut.uid; - dst->ut.gid = src->ut.gid; - dst->ut.ngroups = src->ut.ngroups; - dst->ut.groups = groups; - dst->nt_user_token = nt_token; - return true; -} - /*************************************************************************** Purely internal function for make_server_info_info3 ***************************************************************************/ diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 44ae9097a5..2754e86ddb 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -232,7 +232,6 @@ NTSTATUS make_session_info_guest(TALLOC_CTX *mem_ctx, NTSTATUS make_session_info_system(TALLOC_CTX *mem_ctx, struct auth_session_info **session_info); const struct auth_session_info *get_session_info_system(void); -bool copy_current_user(struct current_user *dst, struct current_user *src); struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser, char **p_save_username, bool create ); NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, -- cgit