From f6d62226a33cdff41ad7881996d856b7130ef15c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 1 Dec 2007 14:55:56 +0100 Subject: [PATCH] Put posix semantic calculation in the same place in both routines --- source/smbd/nttrans.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index aaf4a408e6b..9e6b933b645 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -1467,15 +1467,6 @@ static void call_nt_transact_create(connection_struct *conn, * Ordinary file or directory. */ - /* - * Check if POSIX semantics are wanted. - */ - - if (file_attributes & FILE_FLAG_POSIX_SEMANTICS) { - case_state = set_posix_case_semantics(NULL, conn); - file_attributes &= ~FILE_FLAG_POSIX_SEMANTICS; - } - status = resolve_dfspath(ctx, conn, req->flags2 & FLAGS2_DFS_PATHNAMES, fname, @@ -1491,6 +1482,15 @@ static void call_nt_transact_create(connection_struct *conn, return; } + /* + * Check if POSIX semantics are wanted. + */ + + if (file_attributes & FILE_FLAG_POSIX_SEMANTICS) { + case_state = set_posix_case_semantics(NULL, conn); + file_attributes &= ~FILE_FLAG_POSIX_SEMANTICS; + } + status = unix_convert(ctx, conn, fname, False, &fname, NULL, &sbuf); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(case_state); -- 2.11.4.GIT