From 207af5d9e397eabbddbb2d273f542f641123aeb4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 1 Feb 2012 19:44:32 +0100 Subject: s3-vfstest: Correctly initialize the connection path --- source3/torture/vfstest.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit