mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
net conf: don't drop config in testmode
Michael
(This used to be commit 74e87b9775
)
This commit is contained in:
parent
a98c08c151
commit
2a94369946
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user