summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-19 18:48:15 +0100
committerVolker Lendecke <vl@samba.org>2012-02-19 21:36:33 +0100
commit810d2f55c113c2b0e68a4bfd37d51d26beac415c (patch)
tree69a657228d9641dee459be9e911526d28c9b3932 /source3
parent61314dbe0f64d0fdf230e5588afe73165db151fd (diff)
downloadsamba-810d2f55c113c2b0e68a4bfd37d51d26beac415c.tar.gz
samba-810d2f55c113c2b0e68a4bfd37d51d26beac415c.tar.bz2
samba-810d2f55c113c2b0e68a4bfd37d51d26beac415c.zip
s3-vfstest: Initialize some more
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/vfstest.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 22cded804f..b0d55f5af5 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -25,9 +25,13 @@
#include "includes.h"
#include "smbd/smbd.h"
+#include "smbd/globals.h"
#include "popt_common.h"
#include "vfstest.h"
#include "../libcli/smbreadline/smbreadline.h"
+#include "auth.h"
+#include "serverid.h"
+#include "messages.h"
/* List to hold groups of commands */
static struct cmd_list {
@@ -424,6 +428,7 @@ int main(int argc, char *argv[])
char *filename = NULL;
char cwd[MAXPATHLEN];
TALLOC_CTX *frame = talloc_stackframe();
+ struct tevent_context *ev = tevent_context_init(NULL);
/* make sure the vars that get altered (4th field) are in
a fixed location or certain compilers complain */
@@ -469,8 +474,15 @@ int main(int argc, char *argv[])
/* some basic initialization stuff */
sec_init();
+ init_guest_info();
+ locking_init();
+ serverid_parent_init(NULL);
vfs.conn = talloc_zero(NULL, connection_struct);
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);
+ make_session_info_guest(NULL, &vfs.conn->session_info);
+ file_init(vfs.conn->sconn);
set_conn_connectpath(vfs.conn, getcwd(cwd, sizeof(cwd)));
for (i=0; i < 1024; i++)
vfs.files[i] = NULL;