Changeset 65
- Timestamp:
- Aug 22, 2007, 12:25:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/rpc_server/srv_srvsvc_nt.c
r22 r65 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, '/', '\\' ); … … 266 268 pstrcpy(remark, lp_comment(snum)); 267 269 standard_sub_conn(p->conn, remark,sizeof(remark)); 268 pstrcpy(path, "C:"); 270 if (strchr( lp_pathname(snum), ':')) 271 pstrcpy(path, ""); 272 else 273 pstrcpy(path, "C:"); 269 274 pstrcat(path, lp_pathname(snum)); 270 275 … … 346 351 pstrcpy(remark, lp_comment(snum)); 347 352 standard_sub_conn(p->conn, remark,sizeof(remark)); 348 pstrcpy(path, "C:"); 353 if (strchr( lp_pathname(snum), ':')) 354 pstrcpy(path, ""); 355 else 356 pstrcpy(path, "C:"); 349 357 pstrcat(path, lp_pathname(snum)); 350 358 … … 1447 1455 /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */ 1448 1456 ptr = dos_pathname; 1457 1458 #ifdef __OS2__ 1459 1460 /* Only absolute paths allowed. */ 1461 if (strlen(dos_pathname) < 2 || ptr[1] != ':') 1462 return NULL; 1463 #else 1464 1449 1465 if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/') 1450 1466 ptr += 2; … … 1453 1469 if (*ptr != '/') 1454 1470 return NULL; 1471 #endif 1455 1472 1456 1473 return ptr; … … 2175 2192 ***********************************************************************************/ 2176 2193 2177 static const char *server_disks[] = {"C:"}; 2194 static const char *server_disks[] = {"C:" 2195 #ifdef __OS2__ 2196 // YD we can use a better implementation (real time scan or above idea) 2197 ,"D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:" 2198 ,"P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:" 2199 #endif 2200 }; 2178 2201 2179 2202 static uint32 get_server_disk_count(void)
Note:
See TracChangeset
for help on using the changeset viewer.