summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-12-18 14:31:52 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-12-18 14:36:20 +1100
commit1a399db01c90753f0f1c70b2987b925c828b1c53 (patch)
tree6f2085fdefcc4380824289871c38557b7df9c2db /source4/lib/ldb/tools
parenta9cf61dbdd4cf914215723b17912f584fff151c0 (diff)
downloadsamba-1a399db01c90753f0f1c70b2987b925c828b1c53.tar.gz
samba-1a399db01c90753f0f1c70b2987b925c828b1c53.tar.bz2
samba-1a399db01c90753f0f1c70b2987b925c828b1c53.zip
Parse options (and open the database) before starting transactions
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbmodify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/tools/ldbmodify.c b/source4/lib/ldb/tools/ldbmodify.c
index 0288e4e688..d73937cea4 100644
--- a/source4/lib/ldb/tools/ldbmodify.c
+++ b/source4/lib/ldb/tools/ldbmodify.c
@@ -91,13 +91,13 @@ int main(int argc, const char **argv)
ldb = ldb_init(NULL, NULL);
+ options = ldb_cmdline_process(ldb, argc, argv, usage);
+
if (ldb_transaction_start(ldb) != 0) {
printf("Failed to start transaction: %s\n", ldb_errstring(ldb));
exit(1);
}
- options = ldb_cmdline_process(ldb, argc, argv, usage);
-
if (options->argc == 0) {
ret = process_file(ldb, stdin, &count);
} else {