git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ab38b4
)
added a couple more error codes to cli_error()
author
Andrew Tridgell
<tridge@samba.org>
Mon, 26 Oct 1998 03:31:00 +0000
(
03:31
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 26 Oct 1998 03:31:00 +0000
(
03:31
+0000)
(This used to be commit
b2a7f85d597d4d2a71fd38d76aac0464d53df626
)
source3/libsmb/clientgen.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clientgen.c
b/source3/libsmb/clientgen.c
index 6a0818d17758699a744548cdc60988c1261a300c..1e2869c0b80072fa3d1b67bd361d671cef23a077 100644
(file)
--- a/
source3/libsmb/clientgen.c
+++ b/
source3/libsmb/clientgen.c
@@
-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 */