Changeset 165 for branches/samba-3.0/source/rpc_server
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/rpc_server/srv_srvsvc_nt.c
r124 r165 157 157 158 158 if ( strcmp( fname, "." ) == 0 ) { 159 pstr_sprintf( fullpath, "%s%s", 160 (strchr( sharepath,':')) ? "" : "C:", sharepath ); 159 pstr_sprintf( fullpath, "C:%s", sharepath ); 161 160 } else { 162 pstr_sprintf( fullpath, "%s%s/%s", 163 (strchr( sharepath,':')) ? "" : "C:", sharepath, fname ); 161 pstr_sprintf( fullpath, "C:%s/%s", sharepath, fname ); 164 162 } 165 163 string_replace( fullpath, '/', '\\' ); … … 265 263 pstrcpy(remark, lp_comment(snum)); 266 264 standard_sub_conn(p->conn, remark,sizeof(remark)); 267 if (strchr( lp_pathname(snum), ':')) 268 pstrcpy(path, ""); 269 else 270 pstrcpy(path, "C:"); 265 pstrcpy(path, "C:"); 271 266 pstrcat(path, lp_pathname(snum)); 272 267 … … 348 343 pstrcpy(remark, lp_comment(snum)); 349 344 standard_sub_conn(p->conn, remark,sizeof(remark)); 350 if (strchr( lp_pathname(snum), ':')) 351 pstrcpy(path, ""); 352 else 353 pstrcpy(path, "C:"); 345 pstrcpy(path, "C:"); 354 346 pstrcat(path, lp_pathname(snum)); 355 347 … … 1452 1444 /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */ 1453 1445 ptr = dos_pathname; 1454 1455 #ifdef __OS2__1456 1457 /* Only absolute paths allowed. */1458 if (strlen(dos_pathname) < 2 || ptr[1] != ':')1459 return NULL;1460 #else1461 1462 1446 if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/') 1463 1447 ptr += 2; … … 1466 1450 if (*ptr != '/') 1467 1451 return NULL; 1468 #endif1469 1452 1470 1453 return ptr; … … 2189 2172 ***********************************************************************************/ 2190 2173 2191 static const char *server_disks[] = {"C:" 2192 #ifdef __OS2__ 2193 // YD we can use a better implementation (real time scan or above idea) 2194 ,"D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:" 2195 ,"P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:" 2196 #endif 2197 }; 2174 static const char *server_disks[] = {"C:"}; 2198 2175 2199 2176 static uint32 get_server_disk_count(void)
Note:
See TracChangeset
for help on using the changeset viewer.