1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00
Jeremy Allison 3587815595 Fix bug #7339 - MSDFS is non-functional in 3.5.x
In the refactoring around filename_convert, the split between the functions
resolve_dfspath() and resolve_dfspath_wcard() was lost, leaving us only with
resolve_dfspath_wcard().

Internally resolve_dfspath_wcard() calls dfs_redirect() only with a
"allow_wcards" flag of true, wheras the old resolve_dfspath() would call with a
value of false. The loss of this case causes dfs_redirect to always masquerade
DFS links as directories, even when they are being queried directly by a trans2
QPATHINFO call. We should only masquerade DFS links as directories when called
from a SMBsearch or trans2 findfirst/findnext - which was the intent of the
"allow_wcards" flag.

This patch adds back an allow_wcards bool parameter to
resolve_dfspath_wcard(). This bool is set from the state of the ucf_flags when
filename_convert() is called.

I will follow this up with a new smbclient-based torture test that will prevent
us from ever regressing our DFS support again.

Jeremy.
2010-04-08 20:32:36 -07:00
..
2010-03-14 17:42:49 +01:00
2010-03-14 17:42:49 +01:00
2010-03-14 17:42:49 +01:00
2010-03-14 17:42:49 +01:00
2009-03-18 23:22:29 +01:00
2009-02-19 20:58:26 -08:00
2010-03-14 17:42:49 +01:00
2009-11-21 23:19:50 +01:00
2009-10-13 20:34:24 +02:00
2010-03-24 17:34:57 +01:00
2009-11-05 12:05:36 +01:00
2010-03-16 22:35:41 +01:00
2009-05-01 12:30:58 +02:00
2009-02-26 11:05:22 +01:00
2010-02-23 12:46:50 -05:00
2009-08-16 12:38:19 +02:00
2009-07-04 12:54:22 +02:00
2010-03-13 20:20:37 +01:00