diff options
-rw-r--r-- | source3/libsmb/clierror.c | 2 |
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; |