Changeset 454 for trunk/server/source3/rpc_server
- Timestamp:
- Jun 4, 2010, 3:11:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/rpc_server/srv_srvsvc_nt.c
r414 r454 179 179 180 180 if ( strcmp( fname, "." ) == 0 ) { 181 #ifndef __OS2__ 181 182 fullpath = talloc_asprintf(fenum->ctx, "C:%s", sharepath ); 183 #else 184 fullpath = talloc_asprintf(fenum->ctx, "%s%s", 185 (strchr( sharepath,':')) ? "" : "C:", sharepath ); 186 #endif 182 187 } else { 188 #ifndef __OS2__ 183 189 fullpath = talloc_asprintf(fenum->ctx, "C:%s/%s", 184 190 sharepath, fname ); 191 #else 192 fullpath = talloc_asprintf(fenum->ctx, "%s%s/%s", 193 (strchr( sharepath,':')) ? "" : "C:", sharepath, fname ); 194 #endif 185 195 } 186 196 if (!fullpath) { … … 294 304 "", remark); 295 305 } 306 #ifdef __OS2__ 307 if (strchr( lp_pathname(snum), ':')) 308 path = talloc_asprintf(p->mem_ctx,"%s", lp_pathname(snum)); 309 else 310 #endif 311 296 312 path = talloc_asprintf(p->mem_ctx, 297 313 "C:%s", lp_pathname(snum)); … … 386 402 "", remark); 387 403 } 404 #ifdef __OS2__ 405 if (strchr( lp_pathname(snum), ':')) 406 path = talloc_asprintf(ctx, "%s", lp_pathname(snum)); 407 else 408 #endif 388 409 path = talloc_asprintf(ctx, "C:%s", lp_pathname(snum)); 389 410 if (path) { … … 1489 1510 } 1490 1511 1512 #ifdef __OS2__ 1513 /* Only absolute paths allowed. */ 1514 if (strlen(ptr) < 2 || ptr[1] != ':') 1515 return NULL; 1516 #else 1491 1517 /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */ 1492 1518 if (strlen(ptr) > 2 && ptr[1] == ':' && ptr[0] != '/') … … 1496 1522 if (*ptr != '/') 1497 1523 return NULL; 1524 #endif 1498 1525 1499 1526 return ptr; … … 2338 2365 ***********************************************************************************/ 2339 2366 2367 #ifndef __OS2__ 2340 2368 static const char *server_disks[] = {"C:"}; 2369 #else // YD we can use a better implementation (real time scan or above idea) 2370 static const char *server_disks[] = {"C:","D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:", 2371 "P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:"}; 2372 #endif 2341 2373 2342 2374 static uint32 get_server_disk_count(void)
Note:
See TracChangeset
for help on using the changeset viewer.