summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_registry.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 44ebef5bf2..0993b958b1 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -1303,6 +1303,12 @@ static int net_registry_import(struct net_context *c, int argc,
SMB_ASSERT(ret == 0);
+ if (c->opt_testmode) {
+ d_printf("Testmode: not committing changes.\n");
+ regdb_transaction_cancel();
+ goto done;
+ }
+
werr = regdb_transaction_commit();
if (!W_ERROR_IS_OK(werr)) {
d_printf("Failed to commit transaction on regdb: %s\n",