mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
b8aa05525e
ldb* tools, when passed a raw filename assume tdb:// By default, ldb_tdb will call tdb with O_CREAT. TDB, when passed O_CREAT and a not-tdb file, will wipe the file. This means that if you run ldbedit <path to mdb-format-ldb file> the file will be wiped, which is unexpected. I noticed this while trying to corrupt a sam.ldb backend file (for testing), but instead I wiped it! Ideally tdb would not do that, but the behaviour has been this way for decades. Ideally ldb would have had a "create db" command, but this has been the job of ldbadd for over a decade. So this just blunts the knife for ldbedit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14302 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> |
||
---|---|---|
.. | ||
ABI | ||
common | ||
docs | ||
examples | ||
include | ||
ldb_key_value | ||
ldb_ldap | ||
ldb_ldb | ||
ldb_map | ||
ldb_mdb | ||
ldb_sqlite3 | ||
ldb_tdb | ||
man | ||
modules | ||
nssldb | ||
tests | ||
tools | ||
web | ||
_ldb_text.py | ||
configure | ||
Doxyfile | ||
examples.dox | ||
ldb.pc.in | ||
mainpage.dox | ||
Makefile | ||
pyldb_util.c | ||
pyldb-util.pc.in | ||
pyldb.c | ||
pyldb.h | ||
README_gcov.txt | ||
wscript |