summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_preopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_preopen.c')
-rw-r--r--source3/modules/vfs_preopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c
index 3540d34c4f..108ca29088 100644
--- a/source3/modules/vfs_preopen.c
+++ b/source3/modules/vfs_preopen.c
@@ -405,7 +405,7 @@ static int preopen_open(vfs_handle_struct *handle,
TALLOC_FREE(state->template_fname);
state->template_fname = talloc_asprintf(
- state, "%s/%s", fsp->conn->connectpath, smb_fname->base_name);
+ state, "%s/%s", fsp->conn->cwd, smb_fname->base_name);
if (state->template_fname == NULL) {
return res;