diff options
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/onefs_open.c | 4 |
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() */ |