libsmb: Remove cli_state->dfs_mountpoint
authorVolker Lendecke <vl@samba.org>
Sat, 31 Oct 2020 15:48:31 +0000 (16:48 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 4 Nov 2020 20:17:47 +0000 (20:17 +0000)
Not used anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Nov  4 20:17:47 UTC 2020 on sn-devel-184

source3/include/client.h
source3/libsmb/clidfs.c
source3/libsmb/clientgen.c

index 19a738900b760652436e08869046edc68d970332..14be20ef1e0cceca463c800c25e080873c7b658a 100644 (file)
@@ -78,9 +78,6 @@ struct cli_state {
 
        bool use_oplocks; /* should we use oplocks? */
 
-       /* Where (if anywhere) this is mounted under DFS. */
-       char *dfs_mountpoint;
-
        struct smbXcli_conn *conn;
 
        struct {
index 081de18ac76c8890b962e42899ea3e152df4a232..26b5499cf7359817652614f14abe68a0b0b405ef 100644 (file)
@@ -262,22 +262,6 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
        return NT_STATUS_OK;
 }
 
-/****************************************************************************
-****************************************************************************/
-
-static void cli_set_mntpoint(struct cli_state *cli, const char *mnt)
-{
-       TALLOC_CTX *frame = talloc_stackframe();
-       char *name = clean_name(frame, mnt);
-       if (!name) {
-               TALLOC_FREE(frame);
-               return;
-       }
-       TALLOC_FREE(cli->dfs_mountpoint);
-       cli->dfs_mountpoint = talloc_strdup(cli, name);
-       TALLOC_FREE(frame);
-}
-
 /********************************************************************
  Add a new connection to the list.
  referring_cli == NULL means a new initial connection.
@@ -1105,8 +1089,6 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
                return NT_STATUS_NOT_FOUND;
        }
 
-       cli_set_mntpoint(*targetcli, newmount);
-
        /* Check for another dfs referral, note that we are not
           checking for loops here. */
 
index 4412651f5054d568523766630c5cd321196b6e0a..7cb89e87a9d0aaff8c68e00da01270f5f396523d 100644 (file)
@@ -101,10 +101,6 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx,
                goto error;
        }
 
-       cli->dfs_mountpoint = talloc_strdup(cli, "");
-       if (!cli->dfs_mountpoint) {
-               goto error;
-       }
        cli->raw_status = NT_STATUS_INTERNAL_ERROR;
        cli->map_dos_errors = true; /* remove this */
        cli->timeout = CLIENT_TIMEOUT;