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:
parent
a7d39ed143
commit
3e8ce497f3
@ -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 {
|
||||
|
@ -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. */
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user