mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
added a couple more error codes to cli_error()
(This used to be commit b2a7f85d597d4d2a71fd38d76aac0464d53df626)
This commit is contained in:
parent
0ab38b4e60
commit
4f2a6adb7c
@ -2440,11 +2440,17 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num)
|
||||
case ERRnoaccess: return EACCES;
|
||||
case ERRfilexists: return EEXIST;
|
||||
case ERRrename: return EEXIST;
|
||||
case ERRbadshare: return EBUSY;
|
||||
case ERRlock: return EBUSY;
|
||||
}
|
||||
}
|
||||
if (rcls == ERRSRV) {
|
||||
switch (code) {
|
||||
case ERRbadpw: return EPERM;
|
||||
case ERRaccess: return EACCES;
|
||||
case ERRnoresource: return ENOMEM;
|
||||
case ERRinvdevice: return ENODEV;
|
||||
case ERRinvnetname: return ENODEV;
|
||||
}
|
||||
}
|
||||
/* for other cases */
|
||||
|
Loading…
x
Reference in New Issue
Block a user