summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-19 17:23:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:48 -0500
commitf40e9fcc5b75fdd272a8de17c560cdc5b3e68694 (patch)
tree4c0362d584cebf1c3cbc190d0521e9e5903f1110
parentd53f6625aa049b8347d7214c998e9731a2f78955 (diff)
downloadsamba-f40e9fcc5b75fdd272a8de17c560cdc5b3e68694.tar.gz
samba-f40e9fcc5b75fdd272a8de17c560cdc5b3e68694.tar.bz2
samba-f40e9fcc5b75fdd272a8de17c560cdc5b3e68694.zip
r16356: Helping derrell out. Jeremy.
Only set the DFS capability flag if the share is a DFS root. Fixes bug 3814. (This used to be commit 6193f1170819096ea8a646e5a456f627df83872d)
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 83664b0b32..f5116234c8 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -198,7 +198,7 @@ void cli_setup_packet(struct cli_state *cli)
flags2 = FLAGS2_LONG_PATH_COMPONENTS;
if (cli->capabilities & CAP_UNICODE)
flags2 |= FLAGS2_UNICODE_STRINGS;
- if (cli->capabilities & CAP_DFS)
+ if ((cli->capabilities & CAP_DFS) && cli->dfsroot)
flags2 |= FLAGS2_DFS_PATHNAMES;
if (cli->capabilities & CAP_STATUS32)
flags2 |= FLAGS2_32_BIT_ERROR_CODES;