- Timestamp:
- Mar 27, 2009, 9:53:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/rpc_server/srv_srvsvc_nt.c
r165 r166 1444 1444 /* NT is braindead - it wants a C: prefix to a pathname ! So strip it. */ 1445 1445 ptr = dos_pathname; 1446 if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/') 1446 #ifdef __OS2__ 1447 /* Only absolute paths allowed. */ 1448 if (strlen(dos_pathname) < 2 || ptr[1] != ':') 1449 return NULL; 1450 #else 1451 if (strlen(dos_pathname) > 2 && ptr[1] == ':' && ptr[0] != '/') 1447 1452 ptr += 2; 1448 1453 … … 1450 1455 if (*ptr != '/') 1451 1456 return NULL; 1452 1457 #endif 1453 1458 return ptr; 1454 1459 } … … 2172 2177 ***********************************************************************************/ 2173 2178 2174 static const char *server_disks[] = {"C:"}; 2179 static const char *server_disks[] = {"C:" 2180 #ifdef __OS2__ 2181 // YD we can use a better implementation (real time scan or above idea) 2182 ,"D:","E:","F:","G:","H:","I:","J:","K:","L:","M:","N:","O:" 2183 ,"P:","Q:","R:","S:","T:","U:","V:","W:","X:","Y:","Z:" 2184 #endif 2185 }; 2175 2186 2176 2187 static uint32 get_server_disk_count(void)
Note:
See TracChangeset
for help on using the changeset viewer.