summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-30 17:54:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:48 -0500
commit6d1607f4d71906121f3b0495a811ed99a3f8331e (patch)
tree19fd8dc8150f6614db3547c49053185c246717d0 /source3
parenta77b3f38b9b76b830997bb876d97cec4884f6774 (diff)
downloadsamba-6d1607f4d71906121f3b0495a811ed99a3f8331e.tar.gz
samba-6d1607f4d71906121f3b0495a811ed99a3f8331e.tar.bz2
samba-6d1607f4d71906121f3b0495a811ed99a3f8331e.zip
r20424: No, we do not have to do that here :-)
(This used to be commit 49a463a97a4f800977ed3a657714e7f3b17bbf21)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 14c7eb8fa8..78630efd44 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -4807,7 +4807,6 @@ static int call_trans2mkdir(connection_struct *conn, char *inbuf, char *outbuf,
BOOL bad_path = False;
NTSTATUS status = NT_STATUS_OK;
struct ea_list *ea_list = NULL;
- files_struct *fsp;
if (!CAN_WRITE(conn))
return ERROR_DOS(ERRSRV,ERRaccess);
@@ -4865,22 +4864,11 @@ static int call_trans2mkdir(connection_struct *conn, char *inbuf, char *outbuf,
ERRnoaccess);
}
- status = open_directory(conn, directory, &sbuf,
- FILE_READ_ATTRIBUTES, /* A stat open */
- FILE_SHARE_NONE, /* Ignored */
- FILE_CREATE, 0, NULL, &fsp);
+ status = create_directory(conn, directory);
if (!NT_STATUS_IS_OK(status)) {
-#if 0
- /* Do we need to do this here ? Need smbtorture test. JRA. */
- if (!use_nt_status() && NT_STATUS_EQUAL(
- status, NT_STATUS_OBJECT_NAME_COLLISION)) {
- status = NT_STATUS_DOS(ERRDOS, ERRfilexists);
- }
-#endif
return ERROR_NT(status);
}
- close_file(fsp, NORMAL_CLOSE);
/* Try and set any given EA. */
if (ea_list) {