summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-02-23 18:24:41 -0800
committerJeremy Allison <jra@samba.org>2011-02-23 18:24:41 -0800
commit916e82823b56a70d7761644b38a250ea8c38e204 (patch)
tree363c4c8cdbec57151d3fac7ab8815a22d85609a0 /source3/modules
parent5ec284d15289c5716114bff99a19890abbd45fb3 (diff)
downloadsamba-916e82823b56a70d7761644b38a250ea8c38e204.tar.gz
samba-916e82823b56a70d7761644b38a250ea8c38e204.tar.bz2
samba-916e82823b56a70d7761644b38a250ea8c38e204.zip
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.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/onefs_open.c4
1 files changed, 3 insertions, 1 deletions
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() */