lib: Fix server_id_db_set_exclusive
authorVolker Lendecke <vl@samba.org>
Tue, 29 Sep 2015 18:24:10 +0000 (20:24 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 1 Oct 2015 00:53:58 +0000 (02:53 +0200)
commit22c5699751d8a7b3eda33260c7ec9f0a8771d25b
treebcab382ff9f29038577da2c2e551d492f285fe1e
parent2c12b516a98778baf6a0aa06c70e94bded1b48ed
lib: Fix server_id_db_set_exclusive

For server_id_db_set_exclusive we need to store the unique id along
with the vnn:pid combo. I had tested all this just with some
smbtorture and net command tests, all of which have a unique id of
zero. When trying to exclusively register "notify-daemon" when smbd
is running, this fails because serverid_exists only tests with zero
unique id. notifyd does have a non-zero unique id, so server_id_exists
will think the existing notifyd is another non-samba process that
happened to claim notifyd's pid.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Oct  1 02:53:58 CEST 2015 on sn-devel-104
lib/util/server_id_db.c