1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

libsmb: Remove cli_state->dfs_mountpoint

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
This commit is contained in:
Volker Lendecke 2020-10-31 16:48:31 +01:00 committed by Jeremy Allison
parent a7d39ed143
commit 3e8ce497f3
3 changed files with 0 additions and 25 deletions

View 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 {

View 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. */

View 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;