From 74e87b977514df79e49613a0b1c5157469b3cb93 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 9 Apr 2008 01:27:30 +0200 Subject: [PATCH] net conf: don't drop config in testmode Michael --- source/utils/net_conf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/utils/net_conf.c b/source/utils/net_conf.c index c01a326c640..f74ba98f541 100644 --- a/source/utils/net_conf.c +++ b/source/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, -- 2.11.4.GIT