Ignore:
Timestamp:
Jan 14, 2011, 12:28:08 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Client 2.1: another bunch of updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/ndpsmb.c

    r519 r521  
    115115        {ND_PROP_STRING, 0, "SPASSWORD",  ""},
    116116        {ND_PROP_STRING, 0, "MASTER", "WORKGROUP"},
    117         { ND_PROP_ULONG, 0, "MASTERTYPE", "1"},
    118         { ND_PROP_ULONG, 0, "EASUPPORT", "1"},
     117        {ND_PROP_ULONG, 0, "MASTERTYPE", "1"},
    119118        {ND_PROP_ULONG, 0, "CTO", "10"},
    120119        {ND_PROP_ULONG, 0, "CLD", "32"},
     120        {ND_PROP_ULONG, 0, "EASUPPORT", "1"},
    121121        {ND_PROP_STRING, 0, NULL, NULL}
    122122};
     
    16751675}
    16761676
     1677// Called when a new thread will call the plugin. Allows to do per thread init, like disable signals.
     1678#define ND_PL_INIT_THREAD 0xFFFF0000
     1679
    16771680int APIENTRY NdpIOCTL (int type, HRESOURCE resource, char *path, int function, void *in, ULONG insize, PULONG poutlen)
    16781681{
     1682    if (function == ND_PL_INIT_THREAD)
     1683       {
     1684          smbwrp_initthread();
     1685          debuglocal(9, "NdpIOCTL init thread\n");
     1686          return NO_ERROR;
     1687       }
     1688
    16791689    debuglocal(9,"NdpIOCTL <%s> %d\n", path, function);
    16801690
     
    18861896
    18871897        debug_printf("NdpFileSetInfo in [%p]\n", pConn);
     1898
     1899        // delete the dir cache
     1900        dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);
     1901
    18881902        do {
    18891903                if (pConn->file.fd < 0 || !*pConn->file.fname)
Note: See TracChangeset for help on using the changeset viewer.