1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

Return EACCES for bad password.

This commit is contained in:
Tim Potter -
parent 46a3a56ecf
commit 143006d32f

View File

@ -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;