summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-01-02 23:41:15 +0000
committerTim Potter <tpot@samba.org>2001-01-02 23:41:15 +0000
commite86cbff0a9f463eef7c3b92081908be4f83f595b (patch)
treec0aa06cc4d0e5a7243160fb2742a32e6452a3c34 /source3
parent842589582bd8a1f631665d1410096f4571371643 (diff)
downloadsamba-e86cbff0a9f463eef7c3b92081908be4f83f595b.tar.gz
samba-e86cbff0a9f463eef7c3b92081908be4f83f595b.tar.bz2
samba-e86cbff0a9f463eef7c3b92081908be4f83f595b.zip
Return EACCES for bad password.
(This used to be commit 143006d32f0a0d339b870741b811ec49795b7099)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clierror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 4c6d9a49f2..eb2ca624e8 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -202,7 +202,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num, uint32 *nt_rpc_
}
if (rcls == ERRSRV) {
switch (code) {
- case ERRbadpw: return EPERM;
+ case ERRbadpw: return EACCES;
case ERRaccess: return EACCES;
case ERRnoresource: return ENOMEM;
case ERRinvdevice: return ENODEV;