summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_conf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index c01a326c64..f74ba98f54 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -314,9 +314,11 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx,
if (!W_ERROR_IS_OK(werr)) {
goto done;
}
- werr = smbconf_drop(conf_ctx);
- if (!W_ERROR_IS_OK(werr)) {
- goto done;
+ if (!opt_testmode) {
+ werr = smbconf_drop(conf_ctx);
+ if (!W_ERROR_IS_OK(werr)) {
+ goto done;
+ }
}
for (sidx = 0; sidx < num_shares; sidx++) {
werr = import_process_service(conf_ctx,