summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_preopen.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-09-12 11:42:57 -0700
committerJeremy Allison <jra@samba.org>2012-09-12 23:45:22 +0200
commitf5a23797949334b3b37a40b8308e0db7ddff9bda (patch)
treed3354a07b0ce17d6a98298b98dd5d3cfc2daf702 /source3/modules/vfs_preopen.c
parentb6636affaf4d475487e49ed8d5a31b94b82ae6d0 (diff)
downloadsamba-f5a23797949334b3b37a40b8308e0db7ddff9bda.tar.gz
samba-f5a23797949334b3b37a40b8308e0db7ddff9bda.tar.bz2
samba-f5a23797949334b3b37a40b8308e0db7ddff9bda.zip
In vfs modules, don't use 'conn->origpath' when we really mean 'conn->cwd'.
This allows VFS modules to work even when we've changed directory under the connect path in order to do root-safe calls. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 12 23:45:23 CEST 2012 on sn-devel-104
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;