added a couple more error codes to cli_error()
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Oct 1998 03:31:00 +0000 (03:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 26 Oct 1998 03:31:00 +0000 (03:31 +0000)
(This used to be commit b2a7f85d597d4d2a71fd38d76aac0464d53df626)

source3/libsmb/clientgen.c

index 6a0818d17758699a744548cdc60988c1261a300c..1e2869c0b80072fa3d1b67bd361d671cef23a077 100644 (file)
@@ -2440,11 +2440,17 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num)
                case ERRnoaccess: return EACCES;
                case ERRfilexists: return EEXIST;
                case ERRrename: return EEXIST;
+               case ERRbadshare: return EBUSY;
+               case ERRlock: return EBUSY;
                }
        }
        if (rcls == ERRSRV) {
                switch (code) {
                case ERRbadpw: return EPERM;
+               case ERRaccess: return EACCES;
+               case ERRnoresource: return ENOMEM;
+               case ERRinvdevice: return ENODEV;
+               case ERRinvnetname: return ENODEV;
                }
        }
        /* for other cases */