diff options
-rw-r--r-- | source3/libsmb/clientgen.c | 2 |
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) { |