[PATCH 4/4] s4: pass config file location to samba_dnsupdate
Matthieu Patou
mat at matws.net
Sun Mar 28 11:27:50 MDT 2010
---
source4/dsdb/dns/dns_update.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c
index 142354a..f0d3cc2 100644
--- a/source4/dsdb/dns/dns_update.c
+++ b/source4/dsdb/dns/dns_update.c
@@ -298,6 +298,7 @@ static void dnsupdate_nameupdate_done(struct tevent_req *subreq)
static void dnsupdate_check_names(struct dnsupdate_service *service)
{
const char * const *dns_update_command = lp_dns_update_command(service->task->lp_ctx);
+ const char * const *lp_config_path = lp_configfile(service->task->lp_ctx);
/* kill any existing child */
TALLOC_FREE(service->nameupdate.subreq);
@@ -308,7 +309,7 @@ static void dnsupdate_check_names(struct dnsupdate_service *service)
timeval_current_ofs(10, 0),
2, 0,
dns_update_command,
- NULL);
+ "-s",lp_config_path,NULL);
if (service->nameupdate.subreq == NULL) {
DEBUG(0,(__location__ ": samba_runcmd_send() failed with no memory\n"));
return;
--
1.6.3.3
--------------080803050903060508040901--
More information about the samba-technical
mailing list