From: Jeremy Allison Date: Wed, 7 Mar 2007 23:58:40 +0000 (+0000) Subject: r21756: An invarient the dfs code depended on for POSIX paths X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~981 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=698159c0ee8d9adb3b56231c0c8ad2ddebd5be11;p=thirdparty%2Fsamba.git r21756: An invarient the dfs code depended on for POSIX paths is no longer true, so fix it. Jeremy. --- diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c index f06bb3b044d..25c9c594975 100644 --- a/source/smbd/msdfs.c +++ b/source/smbd/msdfs.c @@ -78,16 +78,13 @@ static BOOL parse_dfs_path(const char *pathname, struct dfs_path *pdp) into the dfs_path structure This code is dependent on the fact that check_path_syntax() will convert '\\' characters to '/'. - When POSIX pathnames have been selected this doesn't happen, so we - must look for the unaltered separator of '\\' instead of the modified '/'. - JRA. **********************************************************************/ static BOOL parse_processed_dfs_path(char* pathname, struct dfs_path *pdp, BOOL allow_wcards) { pstring pathname_local; char *p,*temp; - const char sepchar = lp_posix_pathnames() ? '\\' : '/'; + const char sepchar = '/'; pstrcpy(pathname_local,pathname); p = temp = pathname_local;