summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-01-29 04:52:12 +0000
committerRichard Sharpe <sharpe@samba.org>2001-01-29 04:52:12 +0000
commitbca6b7dd20839a15aa97b4e6ba03c60eab9ed237 (patch)
tree9fda229980ad9f4f3fc649189f932858dfe2c640
parentb9036a07781724d58b34da3b6e876dd28d5f70a6 (diff)
downloadsamba-bca6b7dd20839a15aa97b4e6ba03c60eab9ed237.tar.gz
samba-bca6b7dd20839a15aa97b4e6ba03c60eab9ed237.tar.xz
samba-bca6b7dd20839a15aa97b4e6ba03c60eab9ed237.zip
Add an extra error code translation to clierror.c so that libsmbclient
gets some more error codes correct ...
-rw-r--r--source/libsmb/clierror.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/clierror.c b/source/libsmb/clierror.c
index eb2ca624e85..6d499867905 100644
--- a/source/libsmb/clierror.c
+++ b/source/libsmb/clierror.c
@@ -198,11 +198,12 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_
case ERRbadshare: return EBUSY;
case ERRlock: return EBUSY;
case ERROR_INVALID_NAME: return ENOENT;
+ case ERRnosuchshare: return ENODEV;
}
}
if (rcls == ERRSRV) {
switch (code) {
- case ERRbadpw: return EACCES;
+ case ERRbadpw: return EPERM;
case ERRaccess: return EACCES;
case ERRnoresource: return ENOMEM;
case ERRinvdevice: return ENODEV;