From ae422fce01cd7520d6dd72e08719a5cd003cb640 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 11 Dec 2007 10:49:26 +0100 Subject: [PATCH] Move more stuff out of the way --- source/smbd/open.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/smbd/open.c b/source/smbd/open.c index 47985637214..007b64abf2c 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -2484,13 +2484,6 @@ NTSTATUS create_file(connection_struct *conn, (unsigned int)root_dir_fid, ea_list, sd, fname)); - SET_STAT_INVALID(sbuf); - - if (create_options & FILE_OPEN_BY_FILE_ID) { - status = NT_STATUS_NOT_SUPPORTED; - goto fail; - } - /* * Get the file name. */ @@ -2641,6 +2634,8 @@ NTSTATUS create_file(connection_struct *conn, { char *converted_fname; + SET_STAT_INVALID(sbuf); + status = unix_convert(talloc_tos(), conn, fname, False, &converted_fname, NULL, &sbuf); if (!NT_STATUS_IS_OK(status)) { @@ -2656,6 +2651,11 @@ NTSTATUS create_file(connection_struct *conn, goto fail; } + if (create_options & FILE_OPEN_BY_FILE_ID) { + status = NT_STATUS_NOT_SUPPORTED; + goto fail; + } + if (req == NULL) { oplock_request |= INTERNAL_OPEN_ONLY; } -- 2.11.4.GIT