1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3-vfstest: Correctly initialize the connection path

This commit is contained in:
Volker Lendecke 2012-02-01 19:44:32 +01:00
parent 1bd7497a18
commit 207af5d9e3

View 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;