summaryrefslogtreecommitdiff
path: root/source/include
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-04-10 22:19:36 +0000
committerGerald Carter <jerry@samba.org>2005-04-10 22:19:36 +0000
commit9146f19bb44f00af8b180f8964e1bd8463ec2e73 (patch)
tree19886d6f3a7854946f5af4460f95b2b4c17ec932 /source/include
parent820064592bf3049921220746051d9139fda68c65 (diff)
downloadsamba-9146f19bb44f00af8b180f8964e1bd8463ec2e73.tar.gz
r6285: revert -r5707 to fix the XP sp2 dfs issue in FindFirst().
This is not the same fix as in the current SAMBA_3_0 svn tree since that code has morphed quite a lot. But the effect is the same.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/msdfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/include/msdfs.h b/source/include/msdfs.h
index 8b365d02ea6..afbbe738fe1 100644
--- a/source/include/msdfs.h
+++ b/source/include/msdfs.h
@@ -72,6 +72,14 @@ struct dfs_path
return ERROR_BOTH(NT_STATUS_PATH_NOT_COVERED, \
ERRSRV, ERRbadpath);; }
+#define RESOLVE_FINDFIRST_DFSPATH(name, conn, inbuf, outbuf) \
+{ if ((SVAL(inbuf,smb_flg2) & FLAGS2_DFS_PATHNAMES) && \
+ lp_host_msdfs() && lp_msdfs_root(SNUM(conn)) && \
+ dfs_redirect(name,conn,True)) \
+ return ERROR_BOTH(NT_STATUS_PATH_NOT_COVERED, \
+ ERRSRV, ERRbadpath);; }
+
+
#define init_dfsroot(conn, inbuf, outbuf) \
{ if (lp_msdfs_root(SNUM(conn)) && lp_host_msdfs()) { \
DEBUG(2,("Serving %s as a Dfs root\n", \