diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-12-17 18:41:44 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2006-12-17 18:41:44 +0000 |
commit | 2b22d863b720318e226d66ededba6d2521ac6522 (patch) | |
tree | 90fbbafe1a0016293b32878c8c46b4b601f8854b /source/smbd/reply.c | |
parent | 7af40262e15a88dd90d55230f2e8b71dca43b1ea (diff) | |
download | samba-2b22d863b720318e226d66ededba6d2521ac6522.tar.gz samba-2b22d863b720318e226d66ededba6d2521ac6522.tar.xz samba-2b22d863b720318e226d66ededba6d2521ac6522.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
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index a0596643f81..2e716074023 100644 --- a/source/smbd/reply.c +++ b/source/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) { |