In cli_error() return ENOENT when an ERROR_INVALID_NAME is received instead
authorTim Potter <tpot@samba.org>
Fri, 4 Aug 2000 06:13:05 +0000 (06:13 +0000)
committerTim Potter <tpot@samba.org>
Fri, 4 Aug 2000 06:13:05 +0000 (06:13 +0000)
of the generic EINVAL.

source/libsmb/clierror.c

index 314b343f252d65d3699fe9d812c900d64d225bc7..66bf83cfc57abe4c1a576384b64fd77585219056 100644 (file)
@@ -197,6 +197,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_
                case ERRrename: return EEXIST;
                case ERRbadshare: return EBUSY;
                case ERRlock: return EBUSY;
+               case ERROR_INVALID_NAME: return ENOENT;
                }
        }
        if (rcls == ERRSRV) {