summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-26 03:31:00 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-26 03:31:00 +0000
commit4f2a6adb7cfee8de2c336cf926e29b720a1a8a47 (patch)
treef5ebf421b508dd02998b74d3da68023967328381
parent0ab38b4e602e7b0078f6b8c6af083b7c81f251d2 (diff)
downloadsamba-4f2a6adb7cfee8de2c336cf926e29b720a1a8a47.tar.gz
samba-4f2a6adb7cfee8de2c336cf926e29b720a1a8a47.tar.bz2
samba-4f2a6adb7cfee8de2c336cf926e29b720a1a8a47.zip
added a couple more error codes to cli_error()
(This used to be commit b2a7f85d597d4d2a71fd38d76aac0464d53df626)
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 6 insertions, 0 deletions
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 */