summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-17 18:41:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:34 -0500
commit0379e088dc8220d7d9f0509a22ac39633f53f899 (patch)
tree90e82209e9780f09cb87c78864867a06849b24e6
parent9933b596d1dddca68a7bcc611e1f8cffc7f2a4e6 (diff)
downloadsamba-0379e088dc8220d7d9f0509a22ac39633f53f899.tar.gz
samba-0379e088dc8220d7d9f0509a22ac39633f53f899.tar.bz2
samba-0379e088dc8220d7d9f0509a22ac39633f53f899.zip
r20229: Avoid a silly function call in mkdir_internal. None of the callers look at
errno, all go straight to ERROR_NT(status). Volker (This used to be commit 9d8b48c0ef0af5792b879565915832ee141c853c)
-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) {