From b0c21afffe36b2239f9e688678b28cb58834fb6e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Feb 2012 16:27:07 +0100 Subject: [PATCH] s3-vfstest: Initialize some more --- source3/torture/vfstest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c index 55321dd96da..6e25b34dee0 100644 --- a/source3/torture/vfstest.c +++ b/source3/torture/vfstest.c @@ -32,6 +32,7 @@ #include "auth.h" #include "serverid.h" #include "messages.h" +#include "libcli/security/security.h" /* List to hold groups of commands */ static struct cmd_list { @@ -476,9 +477,12 @@ int main(int argc, char *argv[]) locking_init(); serverid_parent_init(NULL); vfs.conn = talloc_zero(NULL, connection_struct); + vfs.conn->share_access = FILE_GENERIC_ALL; vfs.conn->params = talloc_zero(vfs.conn, struct share_params); vfs.conn->sconn = talloc_zero(NULL, struct smbd_server_connection); vfs.conn->sconn->msg_ctx = messaging_init(vfs.conn->sconn, ev); + vfs.conn->sconn->ev_ctx = ev; + serverid_register(messaging_server_id(vfs.conn->sconn->msg_ctx), 0); make_session_info_guest(NULL, &vfs.conn->session_info); file_init(vfs.conn->sconn); set_conn_connectpath(vfs.conn, getcwd(cwd, sizeof(cwd))); -- 2.11.4.GIT