libcli/smb: add FLAGS2_DFS_PATHNAMES for SMB1 operations against dfs shares
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Sep 2013 01:31:33 +0000 (03:31 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 17 Oct 2013 14:06:22 +0000 (16:06 +0200)
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>
libcli/smb/smbXcli_base.c

index 7554bd7316e199cc3d0d2d2c687573b2d1381858..a2a559af96ccc7a1df1abec60c14776c1345efab 100644 (file)
@@ -1272,6 +1272,12 @@ struct tevent_req *smb1cli_req_create(TALLOC_CTX *mem_ctx,
 
        if (tcon) {
                tid = tcon->smb1.tcon_id;
+
+               if (smbXcli_conn_dfs_supported(conn) &&
+                   smbXcli_tcon_is_dfs_share(tcon))
+               {
+                       additional_flags2 |= FLAGS2_DFS_PATHNAMES;
+               }
        }
 
        state->smb1.recv_cmd = 0xFF;