summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 06:43:41 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 06:43:41 +0000
commitf3db9286f98a8d5ab2310fca73e89f0f2732704e (patch)
tree8a90b1bfb4e3391ffc84d9e67548204117a1723f /source3/libsmb
parent5ade894f32377ffaed3fc085810892509a6e8c66 (diff)
downloadsamba-f3db9286f98a8d5ab2310fca73e89f0f2732704e.tar.gz
samba-f3db9286f98a8d5ab2310fca73e89f0f2732704e.tar.bz2
samba-f3db9286f98a8d5ab2310fca73e89f0f2732704e.zip
fix an error code in cli_error()
(This used to be commit bbc891727e57172bf6200e10c32498776a77510b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index cd6d295094..4ce86eeb2c 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -2274,7 +2274,7 @@ int cli_error(struct cli_state *cli, uint8 *eclass, uint32 *num)
if (rcls == ERRDOS) {
switch (code) {
case ERRbadfile: return ENOENT;
- case ERRnoaccess: return EPERM;
+ case ERRnoaccess: return EACCES;
}
}
if (rcls == ERRSRV) {