smbd: remove unused create_conn_struct() function
authorStefan Metzmacher <metze@samba.org>
Fri, 25 May 2018 06:49:29 +0000 (08:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 18:52:23 +0000 (20:52 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/msdfs.c
source3/smbd/proto.h

index eff41f3419daa1e587130ad98b0d8733ca074a8d..9c8e32e314464a9e47aa8ac9f9c6e496764a896d 100644 (file)
@@ -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) {
index 68dd566efd10a908a73da24980060fe23e520e93..e4d0cf44e9b6dda88b20e457cbe4f6f34cec4a83 100644 (file)
@@ -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 {