From f3db9286f98a8d5ab2310fca73e89f0f2732704e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Oct 1998 06:43:41 +0000 Subject: fix an error code in cli_error() (This used to be commit bbc891727e57172bf6200e10c32498776a77510b) --- source3/libsmb/clientgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') 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) { -- cgit