Ignore:
Timestamp:
Jan 24, 2011, 12:01:41 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Client 2.0: more errno fixes

Location:
branches/client-2.0/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/client-2.0/src/help/ndpsmb.ipf

    r524 r527  
    287287:li.possible SIGPIPE crashes redone (thanks to Vitali)
    288288:li.touch did not delete the cache
     289:eul.
     290:li.2.0.0 GA
     291:ul.
     292:li.changed wpi package
    289293:eul.
    290294:eul.
  • branches/client-2.0/src/help/ndpsmb_de.ipf

    r524 r527  
    295295:li.Touch l&oe.schte den Cache nicht
    296296:eul.
     297:li.2.0.0 GA
     298:ul.
     299:li.&Ae.nderung im WarpIn Packet
     300:eul.
    297301:eul.
    298302.******************************************************
  • branches/client-2.0/src/help/ndpsmb_fr.ipf

    r524 r527  
    400400:li."touch" ne supprimait pas le cache.
    401401:eul.
     402:li.2.0.0 GA
     403:ul.
     404:li.Modification du l'archive de distribution WPI.
     405:eul.
    402406:eul.
    403407:p.
  • branches/client-2.0/src/help/readme.txt

    r524 r527  
    278278   - touch did not delete the cache
    279279
     280 v2.0.0 GA:
     281   - changed wpi package
     282
  • branches/client-2.0/src/help/readme_de.txt

    r524 r527  
    289289v2.0.0 beta4:
    290290   - m”gliche SIGPIPE Abstrze komplett neu gel”st (Dank geht an Vitali)
    291    - Touch l”schte den Cache nicht
    292 
     291   - Touch l”schte den Cache nicht
     292
     293v2.0.0 GA:
     294   - Žnderung am WarpIn Packet
     295
  • branches/client-2.0/src/help/readme_fr.txt

    r524 r527  
    372372   - "touch" ne supprimait pas le cache.
    373373
     374 v2.0.0 GA :
     375   - Modification du l'archive de distribution WPI.
     376
    374377
    375378Traduction fran‡aise : Guillaume Gay <guillaume.gay@bigfoot.com>
  • branches/client-2.0/src/ndpsmb.c

    r520 r527  
    10661066                                }
    10671067                        }
    1068                         else
    1069                         {
     1068
     1069                        if (rc == NO_ERROR)
     1070                        {
    10701071                                finfo.easize = -1;
    10711072                                getfindinfoL(pConn, plist, &finfo, 0, NULL);
    10721073                        }
    1073                         if (rc == ERROR_FILE_NOT_FOUND)
     1074                        else if (rc == ERROR_FILE_NOT_FOUND)
    10741075                        {
    10751076                                // now try the upper path
    1076                                 char * p = ph->fsphStrChr(finfo.fname, '\\');
     1077                                char * p = ph->fsphStrRChr(finfo.fname, '\\');
    10771078                                if (p && p > finfo.fname)
    10781079                                {
    10791080                                        *p = 0;
    10801081                                        rc = smbwrp_getattr( &pRes->srv, pConn->cli, &finfo);
    1081                                         if (rc)
     1082                                        debuglocal(9,"NdpQueryPathInfo upper path in <%s>, rc = %d\n",  finfo.fname, rc);
     1083                                        if (rc == NO_ERROR)
    10821084                                        {       
    1083                                             debuglocal(9,"NdpQueryPathInfo upper path in <%s>, retry = %d\n",  finfo.fname, retry);
    1084                                             rc = rc ? ERROR_PATH_NOT_FOUND : ERROR_INVALID_PARAMETER;
     1085                                            rc = (finfo.attr & FILE_DIRECTORY) !=0 ?
     1086                                                ERROR_PATH_NOT_FOUND :
     1087                                                ERROR_INVALID_PARAMETER;
    10851088                                        }
     1089                                        else if (rc != ERROR_REM_NOT_LIST)
     1090                                        {
     1091                                              rc = ERROR_PATH_NOT_FOUND;
     1092                                        }
    10861093                                }
    10871094                        }
  • branches/client-2.0/src/smbwrp.c

    r520 r527  
    932932        if (cli->capabilities & CAP_NT_SMBS && !(cli->capabilities & CAP_NOPATHINFO2))
    933933        {
    934                 int rc = os2cli_errno(cli);
     934                int ret = cli_errno(cli);
    935935                // cli_qpathinfo* reports EINVAL when path of given file not exists
    936936                // thus there is no real situation when EINVAL should be returned to
    937937                // client at this point, we just replace it to ENOTDIR
    938                 if (rc == EINVAL)
    939                 {
    940                         rc = maperror(ENOTDIR);
    941                 }
    942                 return rc;
     938                if (ret == EINVAL)
     939                {
     940                        ret = ENOTDIR;
     941                }
     942                return maperror(ret);
    943943        }
    944944
Note: See TracChangeset for help on using the changeset viewer.