Ignore:
Timestamp:
Jul 27, 2016, 11:35:56 AM (9 years ago)
Author:
Paul Smedley
Message:

Make connections work with Samba 4.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-3.0/src/smbwrp.c

    r941 r942  
    390390        debuglocal(4," session setup ok. Sending tconx <%s> <********>\n", share);
    391391
     392#if 0 /* Causes connections to fail with Samba 4.x */
    392393        // YD ticket:58 we need to check resource type to avoid connecting to printers.
    393394        // dev type is set to IPC for IPC$, A: for everything else (printers use LPT1:)
     
    406407                        return 7;
    407408        }
     409#endif
    408410
    409411        /* must be a normal share */
     
    766768         */
    767769        if (   *srv->server_name == 0
     770#if 0 /* Causes crashes with Samba 4.x */
    768771            || (strcmp(cli->dev,"IPC") == 0)
     772#endif
    769773            || *srv->share_name == 0
    770774            || (stricmp(srv->share_name,"IPC$") == 0)
     775#if 0 /* Causes crashes with Samba 4.x */
    771776            || (strncmp(cli->dev,"LPT",3) == 0)
     777#endif
    772778           )
    773779        {
     
    12341240                                   smbwrp_share_add, state);
    12351241        } else
     1242#if 0 /* Causes crashes with Samba 4.x */
    12361243        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
    12371247        {
    12381248                smbwrp_special_add(".", state);
     
    12451255                }
    12461256        } else
     1257#if 0 /* Causes crashes with Samba 4.x */
    12471258        if (strncmp(cli->dev,"LPT",3) == 0)
    12481259        {
     
    12551266        }
    12561267        else
     1268#endif
    12571269        {
    12581270                if (list_files(cli, state->mask, aHIDDEN|aSYSTEM|aDIR,
Note: See TracChangeset for help on using the changeset viewer.