Changeset 942
- Timestamp:
- Jul 27, 2016, 11:35:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-3.0/src/smbwrp.c
r941 r942 390 390 debuglocal(4," session setup ok. Sending tconx <%s> <********>\n", share); 391 391 392 #if 0 /* Causes connections to fail with Samba 4.x */ 392 393 // YD ticket:58 we need to check resource type to avoid connecting to printers. 393 394 // dev type is set to IPC for IPC$, A: for everything else (printers use LPT1:) … … 406 407 return 7; 407 408 } 409 #endif 408 410 409 411 /* must be a normal share */ … … 766 768 */ 767 769 if ( *srv->server_name == 0 770 #if 0 /* Causes crashes with Samba 4.x */ 768 771 || (strcmp(cli->dev,"IPC") == 0) 772 #endif 769 773 || *srv->share_name == 0 770 774 || (stricmp(srv->share_name,"IPC$") == 0) 775 #if 0 /* Causes crashes with Samba 4.x */ 771 776 || (strncmp(cli->dev,"LPT",3) == 0) 777 #endif 772 778 ) 773 779 { … … 1234 1240 smbwrp_share_add, state); 1235 1241 } else 1242 #if 0 /* Causes crashes with Samba 4.x */ 1236 1243 if ((strcmp(cli->dev,"IPC") == 0) || *srv->share_name == 0 || (stricmp(srv->share_name,"IPC$") == 0)) 1244 #else 1245 if (/*(strcmp(cli->dev,"IPC") == 0) ||*/ *srv->share_name == 0 || (stricmp(srv->share_name,"IPC$") == 0)) 1246 #endif 1237 1247 { 1238 1248 smbwrp_special_add(".", state); … … 1245 1255 } 1246 1256 } else 1257 #if 0 /* Causes crashes with Samba 4.x */ 1247 1258 if (strncmp(cli->dev,"LPT",3) == 0) 1248 1259 { … … 1255 1266 } 1256 1267 else 1268 #endif 1257 1269 { 1258 1270 if (list_files(cli, state->mask, aHIDDEN|aSYSTEM|aDIR,
Note:
See TracChangeset
for help on using the changeset viewer.