From: Stefan Metzmacher Date: Fri, 25 May 2018 06:49:29 +0000 (+0200) Subject: smbd: remove unused create_conn_struct() function X-Git-Tag: tevent-0.9.37~340 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d156483d6440a21dfe52b97006f58bf771be5733;p=thirdparty%2Fsamba.git smbd: remove unused create_conn_struct() function Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index eff41f3419d..9c8e32e3144 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -359,33 +359,6 @@ static NTSTATUS create_conn_struct_as_root(TALLOC_CTX *ctx, return NT_STATUS_OK; } -/******************************************************** - Fake up a connection struct for the VFS layer, for use in - applications (such as the python bindings), that do not want the - global working directory changed under them. - - SMB_VFS_CONNECT requires root privileges. -*********************************************************/ - -NTSTATUS create_conn_struct(TALLOC_CTX *ctx, - struct tevent_context *ev, - struct messaging_context *msg, - connection_struct **pconn, - int snum, - const char *path, - const struct auth_session_info *session_info) -{ - NTSTATUS status; - become_root(); - status = create_conn_struct_as_root(ctx, ev, - msg, pconn, - snum, path, - session_info); - unbecome_root(); - - return status; -} - static int conn_struct_tos_destructor(struct conn_struct_tos *c) { if (c->oldcwd_fname != NULL) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 68dd566efd1..e4d0cf44e9b 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -499,13 +499,6 @@ NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx, bool allow_broken_path, char **pp_name_out, bool *ppath_contains_wcard); -NTSTATUS create_conn_struct(TALLOC_CTX *ctx, - struct tevent_context *ev, - struct messaging_context *msg, - connection_struct **pconn, - int snum, - const char *path, - const struct auth_session_info *session_info); struct connection_struct; struct smb_filename; struct conn_struct_tos {