Changeset 167
- Timestamp:
- Mar 27, 2009, 9:52:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/samba-3.0/source/rpc_server/srv_srvsvc_nt.c ¶
r166 r167 157 157 158 158 if ( strcmp( fname, "." ) == 0 ) { 159 pstr_sprintf( fullpath, "C:%s", sharepath ); 159 pstr_sprintf( fullpath, "%s%s", 160 (strchr( sharepath,':')) ? "" : "C:", sharepath ); 160 161 } else { 161 pstr_sprintf( fullpath, "C:%s/%s", sharepath, fname ); 162 pstr_sprintf( fullpath, "%s%s/%s", 163 (strchr( sharepath,':')) ? "" : "C:", sharepath, fname ); 162 164 } 163 165 string_replace( fullpath, '/', '\\' ); … … 263 265 pstrcpy(remark, lp_comment(snum)); 264 266 standard_sub_conn(p->conn, remark,sizeof(remark)); 265 pstrcpy(path, "C:"); 267 if (strchr( lp_pathname(snum), ':')) 268 pstrcpy(path, ""); 269 else 270 pstrcpy(path, "C:"); 266 271 pstrcat(path, lp_pathname(snum)); 267 272 … … 343 348 pstrcpy(remark, lp_comment(snum)); 344 349 standard_sub_conn(p->conn, remark,sizeof(remark)); 345 pstrcpy(path, "C:"); 350 if (strchr( lp_pathname(snum), ':')) 351 pstrcpy(path, ""); 352 else 353 pstrcpy(path, "C:"); 346 354 pstrcat(path, lp_pathname(snum)); 347 355
Note:
See TracChangeset
for help on using the changeset viewer.