summaryrefslogtreecommitdiff
path: root/source3
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
commit7eea846f52f223855d1abe52f39a29b690f97099 (patch)
treebfd0e8fd48a481132e78affd1c94c7313524f785 /source3
parent221926402aa6c9cd4e7c66f8b349a2dc3d8c5c5a (diff)
downloadsamba-7eea846f52f223855d1abe52f39a29b690f97099.tar.gz
samba-7eea846f52f223855d1abe52f39a29b690f97099.tar.bz2
samba-7eea846f52f223855d1abe52f39a29b690f97099.zip
Add an extra error code translation to clierror.c so that libsmbclient
gets some more error codes correct ... (This used to be commit bca6b7dd20839a15aa97b4e6ba03c60eab9ed237)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clierror.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index eb2ca624e8..6d49986790 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/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;