diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-20 16:27:07 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-22 15:48:06 +0100 |
commit | b0c21afffe36b2239f9e688678b28cb58834fb6e (patch) | |
tree | d9ade272f32440d5d4d6e5d64991a12b49e378fd /source3 | |
parent | db17767d4d1e7ddccab899346d0374095389e370 (diff) | |
download | samba-b0c21afffe36b2239f9e688678b28cb58834fb6e.tar.gz samba-b0c21afffe36b2239f9e688678b28cb58834fb6e.tar.bz2 samba-b0c21afffe36b2239f9e688678b28cb58834fb6e.zip |
s3-vfstest: Initialize some more
Diffstat (limited to 'source3')
-rw-r--r-- | source3/torture/vfstest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c index 55321dd96d..6e25b34dee 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))); |