summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/reply.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index a0596643f8..2e71607402 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3755,8 +3755,7 @@ NTSTATUS mkdir_internal(connection_struct *conn, const pstring directory, BOOL b
if(!CAN_WRITE(conn)) {
DEBUG(5,("mkdir_internal: failing create on read-only share %s\n", lp_servicename(SNUM(conn))));
- errno = EACCES;
- return map_nt_error_from_unix(errno);
+ return NT_STATUS_ACCESS_DENIED;
}
if (bad_path) {