]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-vfstest: Correctly initialize the connection path
authorVolker Lendecke <vl@samba.org>
Wed, 1 Feb 2012 18:44:32 +0000 (19:44 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 1 Feb 2012 19:19:31 +0000 (20:19 +0100)
source3/torture/vfstest.c

index ddc5e533a26cb191e2c9fea8c037f88f0515558b..95c377a85f90348d69e8fccc9d1375fb9b74b758 100644 (file)
@@ -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;