return w->conn;
}
-/********************************************************
- Fake up a connection struct for the VFS layer.
- This takes an TALLOC_CTX and tevent_context from the
- caller and the resulting connection_struct is stable
- across the lifetime of mem_ctx and ev.
-
- Note: this performs a vfs connect and changes cwd.
-
- See also the comment for create_conn_struct_tos() above!
-*********************************************************/
-
-NTSTATUS create_conn_struct_cwd(TALLOC_CTX *mem_ctx,
- struct messaging_context *msg,
- const struct auth_session_info *session_info,
- int snum,
- const char *path,
- struct connection_struct **c)
-{
- NTSTATUS status;
-
- become_root();
- status = create_conn_struct_as_root(
- mem_ctx, msg, c, snum, path, session_info);
- unbecome_root();
- return status;
-}
-
static void shuffle_strlist(char **list, int count)
{
int i;
char **_servicename,
char **_remaining_path);
-NTSTATUS create_conn_struct_cwd(TALLOC_CTX *mem_ctx,
- struct messaging_context *msg,
- const struct auth_session_info *session_info,
- int snum,
- const char *path,
- struct connection_struct **c);
struct conn_struct_tos {
struct connection_struct *conn;
struct smb_filename *oldcwd_fname;