From 2acadbb5b85c941cfab39f8ad83ebc0e72c22268 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 18 Sep 2013 09:40:08 +0200 Subject: [PATCH] s3:libsmb: remove unused cli_state->dfsroot Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200 Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam (cherry picked from commit e20c66d78099bcf5d965bd9d59669fe393481517) --- source3/include/client.h | 1 - source3/libsmb/cliconnect.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/source3/include/client.h b/source3/include/client.h index 09f96601c07..1e08272e31c 100644 --- a/source3/include/client.h +++ b/source3/include/client.h @@ -77,7 +77,6 @@ struct cli_state { uint32_t server_posix_capabilities; /* What the client requested. */ uint32_t requested_posix_capabilities; - bool dfsroot; bool backup_intent; /* The list of pipes currently open on this connection. */ diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index da292131582..13e77046cfb 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -2575,16 +2575,10 @@ static void cli_tcon_andx_done(struct tevent_req *subreq) * Avoids issues when connecting to Win9x boxes sharing files */ - cli->dfsroot = false; - if ((wct > 2) && (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_LANMAN2)) { optional_support = SVAL(vwv+2, 0); } - if (optional_support & SMB_SHARE_IN_DFS) { - cli->dfsroot = true; - } - if (optional_support & SMB_EXTENDED_SIGNATURES) { smb1cli_session_protect_session_key(cli->smb1.session); } -- 2.11.4.GIT