dbwrap_tool: add option "--non-persistent" and force excatly one of "--[non-]persistent"
authorMichael Adam <obnox@samba.org>
Thu, 30 Jan 2014 09:29:49 +0000 (10:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 30 Jan 2014 15:57:06 +0000 (16:57 +0100)
commitc3f93271ef447f9f16cd3002307c630c5f149f5a
tree56dcaeb51d4981fceb17141c7fa7dcfa41112b49
parent6f748fef652bbea3c8dbbbfb96b95270e6f1dcfc
dbwrap_tool: add option "--non-persistent" and force excatly one of "--[non-]persistent"

We want to force users of dbwrap_tool to explicitly specify
persistent or non-persistent. Otherwise, one could easily
by accident wipe a whole database that is actually persistent
but not currently opened by a samba process, just by openeing
the DB with the default non-persistent mode...

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/utils/dbwrap_tool.c