1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/lib/messaging
Ralph Boehme 79ec9cbff9 s4:lib/messaging: use correct path for names.tdb
source3 messaging_init() calls server_id_db_init() (where names.tdb is
created) with lock_path. source4 imessaging_init() otoh wrongly used the
special lock_path subdirectory "msg.lock":

> find /opt/samba/ -name names.tdb
/opt/samba/var/lock/msg.lock/names.tdb
/opt/samba/var/lock/names.tdb

> tdbdump /opt/samba/var/lock/names.tdb
{
key(14) = "notify-daemon\00"
data(27) = "28609/12756565486113779780\00"
}

> tdbdump /opt/samba/var/lock/msg.lock/names.tdb
{
key(15) = "winbind_server\00"
data(8) = "28593/0\00"
}

With this patch both source3 and source4 messaging now use the same
names.tdb which is what we want:

> find /opt/samba/ -name names.tdb
/opt/samba/var/lock/names.tdb

> tdbdump /opt/samba/var/lock/names.tdb
{
key(15) = "winbind_server\00"
data(8) = "26434/0\00"
}
{
key(14) = "notify-daemon\00"
data(26) = "26452/3454520012124001687\00"
}

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11562

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-10-20 11:51:16 +02:00
..
tests s4:irpc/tests: explicitly use dcerpc_binding_handle_set_sync_ev() 2014-05-13 00:08:12 +02:00
irpc.h messaging4: Change irpc_servers_by_name to NTSTATUS 2014-07-21 20:28:53 +02:00
messaging.c s4:lib/messaging: use correct path for names.tdb 2015-10-20 11:51:16 +02:00
messaging.h s4-messaging: Unify list of possible messages into messaging.idl 2015-02-16 14:48:41 +01:00
pymessaging.c messaging4: Fix types 2014-11-27 21:32:18 +01:00
wscript_build messaging4: Enable POOL_USAGE 2015-02-14 01:59:19 +01:00