Changeset 108 for branches/samba-3.0/source/smbd/service.c
- Timestamp:
- Dec 11, 2007, 9:44:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/smbd/service.c
r26 r108 62 62 #ifndef __OS2__ 63 63 *d++ = '/'; /* Always start with root. */ 64 #else65 if ((connectpath[0]=='/')||(connectpath[0]=='\\'))66 *d++ = '/'; /* Start with root if connectpath is not a drive path. */67 #endif68 64 69 65 while (*s) { … … 152 148 *d = '\0'; 153 149 154 #ifndef __OS2__155 150 /* And must not end in '/' */ 156 151 if (d > destname + 1 && (*(d-1) == '/')) { … … 158 153 } 159 154 #else 160 /* Must not end in '/' if we are sharing a drive letter on OS/2 */ 161 if (d > destname + 1 && (*(d-1) == ':')) { 162 *(d) = '/'; 163 } 164 165 #endif 155 /* Assume OS/2 users are smart enough to put a correct path in smb.conf, and simply copy the string */ 156 pstrcpy(destname, connectpath); 157 #endif 166 158 167 159 DEBUG(10,("set_conn_connectpath: service %s, connectpath = %s\n",
Note:
See TracChangeset
for help on using the changeset viewer.