summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-01 19:44:32 +0100
committerVolker Lendecke <vl@samba.org>2012-02-01 20:19:31 +0100
commit207af5d9e397eabbddbb2d273f542f641123aeb4 (patch)
tree5591787ea1ce8664f0f3a98d5568bc4ebf25e633
parent1bd7497a18f3b42a5068e6a259a7f03c880f0020 (diff)
downloadsamba-207af5d9e397eabbddbb2d273f542f641123aeb4.tar.gz
samba-207af5d9e397eabbddbb2d273f542f641123aeb4.tar.bz2
samba-207af5d9e397eabbddbb2d273f542f641123aeb4.zip
s3-vfstest: Correctly initialize the connection path
-rw-r--r--source3/torture/vfstest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index ddc5e533a2..95c377a85f 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -422,6 +422,7 @@ int main(int argc, char *argv[])
struct vfs_state vfs = { 0, };
int i;
char *filename = NULL;
+ char cwd[MAXPATHLEN];
TALLOC_CTX *frame = talloc_stackframe();
/* make sure the vars that get altered (4th field) are in
@@ -470,6 +471,7 @@ int main(int argc, char *argv[])
sec_init();
vfs.conn = talloc_zero(NULL, connection_struct);
vfs.conn->params = talloc_zero(vfs.conn, struct share_params);
+ set_conn_connectpath(vfs.conn, getcwd(cwd, sizeof(cwd)));
for (i=0; i < 1024; i++)
vfs.files[i] = NULL;