From 916e82823b56a70d7761644b38a250ea8c38e204 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 23 Feb 2011 18:24:41 -0800 Subject: Fix bug 7950 - Samba 3.5.x fails BASE-CREATEX_SHAREMODES_DIR smbtorture4 test We need to revalidate the pathname once re-constructed from a root fsp. Jeremy. --- source3/modules/onefs_open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/modules/onefs_open.c') diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c index fb4b89a88e..c9372e57de 100644 --- a/source3/modules/onefs_open.c +++ b/source3/modules/onefs_open.c @@ -2093,11 +2093,13 @@ NTSTATUS onefs_create_file(vfs_handle_struct *handle, /* Get the file name if root_dir_fid was specified. */ if (root_dir_fid != 0) { + struct smb_filename *smb_fname_out = NULL; status = get_relative_fid_filename(conn, req, root_dir_fid, - smb_fname); + smb_fname, &smb_fname_out); if (!NT_STATUS_IS_OK(status)) { goto fail; } + smb_fname = smb_fname_out; } /* All file access must go through check_name() */ -- cgit