Add explicit creation of shares to net conf import function.
authorMichael Adam <obnox@samba.org>
Sun, 13 Jan 2008 22:30:08 +0000 (23:30 +0100)
committerMichael Adam <obnox@samba.org>
Sun, 13 Jan 2008 22:30:08 +0000 (23:30 +0100)
It has been removed from libnet_conf_set_parameter().

Michael

source/utils/net_conf.c

index f212ed7b198b41c3a09299d16cfc622beb42d0c4..9a4f3ff69afdf6a056a0a8ca53a1e2323fc415fa 100644 (file)
@@ -217,6 +217,10 @@ static int import_process_service(TALLOC_CTX *ctx,
                                goto done;
                        }
                }
+               werr = libnet_conf_create_share(conf_ctx, servicename);
+               if (!W_ERROR_IS_OK(werr)) {
+                       goto done;
+               }
        }
 
        while ((parm = lp_next_parameter(share->service, &pnum, 0)))