summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-18 03:31:33 +0200
committerMichael Adam <obnox@samba.org>2013-10-17 16:06:22 +0200
commit44224cd40fcec262085423577de9eede27a4a22a (patch)
tree3e81a324981488207d4c9f4767e94151c0960472 /libcli
parent1c4e95cbd88e6122c1e2fb07b119abf225c94fff (diff)
downloadsamba-44224cd40fcec262085423577de9eede27a4a22a.tar.gz
samba-44224cd40fcec262085423577de9eede27a4a22a.tar.bz2
samba-44224cd40fcec262085423577de9eede27a4a22a.zip
libcli/smb: add FLAGS2_DFS_PATHNAMES for SMB1 operations against dfs shares
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>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 7554bd7316..a2a559af96 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -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;