git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9933b59
)
r20229: Avoid a silly function call in mkdir_internal. None of the callers look at
author
Volker Lendecke
<vlendec@samba.org>
Sun, 17 Dec 2006 18:41:44 +0000
(18:41 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:16:34 +0000
(12:16 -0500)
errno, all go straight to ERROR_NT(status).
Volker
(This used to be commit
9d8b48c0ef0af5792b879565915832ee141c853c
)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index a0596643f81c4827ffd774c6385593be8a401307..2e7160740230521e0a058e88faac1aaa5cea6b50 100644
(file)
--- 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) {