dbwrap_local_open: never open the .tdb if there is an .ntdb
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Feb 2013 04:29:42 +0000 (14:59 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Feb 2013 04:31:19 +0000 (05:31 +0100)
commit53aac0bc9384db68c5ff469b07ae757ca1051cec
treeed81834f3fb4022b973747577ab26d0f7f8cf31e
parentf3c0d1d7fe71be7e8b2d1a9780586f8654b46469
dbwrap_local_open: never open the .tdb if there is an .ntdb

This provides an extra safety check that everyone is using one or the
other: you can't create a tdb file if there's an ntdb file.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/dbwrap/dbwrap_local_open.c