From 4f2a6adb7cfee8de2c336cf926e29b720a1a8a47 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Oct 1998 03:31:00 +0000 Subject: added a couple more error codes to cli_error() (This used to be commit b2a7f85d597d4d2a71fd38d76aac0464d53df626) --- source3/libsmb/clientgen.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 6a0818d177..1e2869c0b8 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -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 */ -- cgit