s3: fix the fix for bug #6195 - dont let smbd child processes panic
authorMichael Adam <obnox@samba.org>
Wed, 1 Apr 2009 10:23:07 +0000 (12:23 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 1 Apr 2009 10:26:36 +0000 (12:26 +0200)
commit6edaf6188c8c27e319357aba920725c5c0af815e
tree20caa1713b4e4cfde51a5532c76ef463c7096cb3
parent1e92ddd40523f053513f9d12611e5a70c8a425f0
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
source3/passdb/pdb_tdb.c