From b0b857d6ca842fb516b3330a11e0d6d78f35aded Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Feb 2010 17:09:35 +1100 Subject: s4-dns: use a loadparm list for samba_runcmd() commands This allows commands with multiple arguments and quoting to be used, while still avoiding running a shell (and this having shell expansion problems) --- source4/dsdb/dns/dns_update.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/dsdb/dns') diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c index 82cb7155ac..4fefd656d7 100644 --- a/source4/dsdb/dns/dns_update.c +++ b/source4/dsdb/dns/dns_update.c @@ -157,10 +157,10 @@ static void dnsupdate_rebuild(struct dnsupdate_service *service) DEBUG(2,("Loading new DNS update grant rules\n")); service->confupdate.c = samba_runcmd(service->task->event_ctx, service, - timeval_current_ofs(10, 0), - 2, 0, - lp_rndc_command(service->task->lp_ctx), - "reload", NULL); + timeval_current_ofs(10, 0), + 2, 0, + lp_rndc_command(service->task->lp_ctx), + "reload", NULL); service->confupdate.c->async.fn = dnsupdate_rndc_done; service->confupdate.c->async.private_data = service; -- cgit