]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused create_conn_struct_cwd()
authorVolker Lendecke <vl@samba.org>
Mon, 16 Feb 2026 11:43:12 +0000 (12:43 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 1 Mar 2026 20:19:35 +0000 (20:19 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/msdfs.c
source3/smbd/proto.h

index 55dd1760db59150e0b5c5fc04f945645068abd75..d94daf022023af867fcf787f01ed4bd423a5b8e3 100644 (file)
@@ -485,33 +485,6 @@ struct connection_struct *conn_wrap_connection(const struct conn_wrap *w)
        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;
index e5712c290bbe9cc691c629c692190b9a15edb6b2..b43b59cc75e703d24e002818fd74099dc59fa56a 100644 (file)
@@ -505,12 +505,6 @@ NTSTATUS parse_dfs_path_strict(TALLOC_CTX *ctx,
                               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;