summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-10-10 16:36:54 -0700
committerKarolin Seeger <kseeger@samba.org>2014-12-04 21:11:13 +0100
commit42e94bc000fa1635f698fbe5aeb801cde5ae3d01 (patch)
tree3dff61ff3d992bbac18bd8d81c5951c15bf768c5 /source3/smbd/server.c
parenta1492cad6a4acdb6bd913fa756fb5b6a92ea105d (diff)
downloadsamba-42e94bc000fa1635f698fbe5aeb801cde5ae3d01.tar.gz
s3:locking: add leases_db infrastructure
Will enable us to solve the dynamic share path problem with leases on [homes]. We're also able to give the correct error codes when a lease key is re-used with a different file name. Pair-Programmed-With: Jeremy Allison <jra@samba.org> Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 14fac5dbc05823562760ac424522fb39817ec062)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 8b9a1c1a96f..0c00cfdff21 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -47,6 +47,7 @@
#include "../lib/util/pidfile.h"
#include "lib/smbd_shim.h"
#include "scavenger.h"
+#include "locking/leases_db.h"
struct smbd_open_socket;
struct smbd_child_pid;
@@ -1450,6 +1451,10 @@ extern void build_options(bool screen);
if (!locking_init())
exit_daemon("Samba cannot init locking", EACCES);
+ if (!leases_db_init(false)) {
+ exit_daemon("Samba cannot init leases", EACCES);
+ }
+
if (!smbd_parent_notify_init(NULL, msg_ctx, ev_ctx)) {
exit_daemon("Samba cannot init notification", EACCES);
}