Author: jra
Date: 2007-03-07 23:58:40 +0000 (Wed, 07 Mar 2007)
New Revision: 21756

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21756

Log:
An invarient the dfs code depended on for POSIX paths
is no longer true, so fix it.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/msdfs.c
   branches/SAMBA_3_0_25/source/smbd/msdfs.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/msdfs.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/msdfs.c      2007-03-07 22:29:21 UTC (rev 
21755)
+++ branches/SAMBA_3_0/source/smbd/msdfs.c      2007-03-07 23:58:40 UTC (rev 
21756)
@@ -78,16 +78,13 @@
  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;

Modified: branches/SAMBA_3_0_25/source/smbd/msdfs.c
===================================================================
--- branches/SAMBA_3_0_25/source/smbd/msdfs.c   2007-03-07 22:29:21 UTC (rev 
21755)
+++ branches/SAMBA_3_0_25/source/smbd/msdfs.c   2007-03-07 23:58:40 UTC (rev 
21756)
@@ -78,16 +78,13 @@
  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;

Reply via email to