From 6d1607f4d71906121f3b0495a811ed99a3f8331e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 30 Dec 2006 17:54:22 +0000 Subject: [PATCH] r20424: No, we do not have to do that here :-) (This used to be commit 49a463a97a4f800977ed3a657714e7f3b17bbf21) --- source3/smbd/trans2.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 14c7eb8fa8b..78630efd449 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) { -- 2.34.1