s3:libsmb: remove unused cli_state->dfsroot
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Sep 2013 07:40:08 +0000 (09:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Mar 2014 15:12:19 +0000 (16:12 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10200

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e20c66d78099bcf5d965bd9d59669fe393481517)

source3/include/client.h
source3/libsmb/cliconnect.c

index 09f96601c075d3c357c61df989dbf15cbcae65ca..1e08272e31ca0d304bacbc9ff1a2894b78ea9374 100644 (file)
@@ -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. */
index da292131582ef6de7b9bc3da41ca3cbe18935ec8..13e77046cfb7b2baa984d784164040128c802bce 100644 (file)
@@ -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);
        }