s3: fix the fix for bug #6195 - dont let smbd child processes panic
commit1ab40fbca806f1136dd1d65edd688beb5ec592c7
authorMichael Adam <obnox@samba.org>
Wed, 1 Apr 2009 10:23:07 +0000 (1 12:23 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 1 Apr 2009 10:31:55 +0000 (1 12:31 +0200)
treef8c512bcc7c941b270512b434518e300d8287435
parent3797ddb3acc713cc200114e9e27dfb3901e5cdf1
s3: fix the fix for bug #6195 - dont let smbd child processes panic

This patch makes sure the original and temporary TDBs are closed
_before_ the rename. Originally, the open TDB was renamed, and so
the name passdb.tdb.tmp stayed around in the db context. Hence
upon client connect, the smbd children died because reinit_after_fork()
calling tdb_reopen_all() would try to reopen passdb.tdb.tmp which
existed no longer...

Michael
source/passdb/pdb_tdb.c