diff options
-rw-r--r-- | source3/smbd/msdfs.c | 27 | ||||
-rw-r--r-- | source3/smbd/proto.h | 7 |
2 files changed, 0 insertions, 34 deletions
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 { |