summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-12-01 14:55:56 +0100
committerVolker Lendecke <vl@sernet.de>2007-12-05 13:45:11 +0100
commit629278abdf580796ad79a7e03fedb31b49489631 (patch)
tree4db0fb71b30d145ae1f45cd53da11b61b49ff1f3 /source3
parent96a1fb4b5da12666ac3164e65b76051dcbd77512 (diff)
downloadsamba-629278abdf580796ad79a7e03fedb31b49489631.tar.gz
samba-629278abdf580796ad79a7e03fedb31b49489631.tar.bz2
samba-629278abdf580796ad79a7e03fedb31b49489631.zip
Put posix semantic calculation in the same place in both routines
(This used to be commit f6d62226a33cdff41ad7881996d856b7130ef15c)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/nttrans.c18
1 files changed, 9 insertions, 9 deletions
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);