]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r21756: An invarient the dfs code depended on for POSIX paths
authorJeremy Allison <jra@samba.org>
Wed, 7 Mar 2007 23:58:40 +0000 (23:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:28 +0000 (12:18 -0500)
is no longer true, so fix it.
Jeremy.

source/smbd/msdfs.c

index f06bb3b044d9f0976bf2d6b42226e715e8aa8200..25c9c59497529038964fffbe64480cee9c671d60 100644 (file)
@@ -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;