From 629278abdf580796ad79a7e03fedb31b49489631 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 1 Dec 2007 14:55:56 +0100 Subject: Put posix semantic calculation in the same place in both routines (This used to be commit f6d62226a33cdff41ad7881996d856b7130ef15c) --- source3/smbd/nttrans.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source3/smbd/nttrans.c') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index aaf4a408e6..9e6b933b64 100644 --- a/source3/smbd/nttrans.c +++ b/source3/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); -- cgit