diff options
-rw-r--r-- | source3/torture/vfstest.c | 2 |
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; |