]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net conf: don't drop config in testmode
authorMichael Adam <obnox@samba.org>
Tue, 8 Apr 2008 23:27:30 +0000 (01:27 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 23:29:02 +0000 (01:29 +0200)
Michael

source/utils/net_conf.c

index c01a326c640026ea65128ed10314c813f2842700..f74ba98f541d0978aa15de913bed77f72c6b82fa 100644 (file)
@@ -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,