Ignore:
Timestamp:
Aug 19, 2008, 3:26:53 PM (17 years ago)
Author:
Yuri Dario
Message:

Map errno smb errors to OS/2 error codes. Minor build system rework.

File:
1 edited

Legend:

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

    r145 r147  
    8989/*
    9090 * Wrapper for cli_errno to return not connected error on negative fd
     91 * Now returns an OS/2 return code instead of lerrno.
    9192 */
    9293int os2cli_errno(cli_state * cli)
     
    9697                return ENOTCONN;
    9798        }
    98         return cli_errno(cli);
     99        return maperror(cli_errno(cli));
    99100}
    100101
     
    16991700}
    17001701
    1701 
    1702 char * getlastslash(char * path)
    1703 {
    1704         char * p;
    1705         if (!path)
    1706         {
    1707                 return NULL;
    1708         }
    1709         for (p = path + strlen(path) - 1; p >= path; p--)
    1710         {
    1711                 if (*p == '\\' || *p == '/')
    1712                 {
    1713                         return p;
    1714                 }
    1715         }
    1716         return NULL;
    1717 }
    1718 
Note: See TracChangeset for help on using the changeset viewer.