From 5d945b7ca36e96b3604edbd1aa86f965bfeaac31 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 28 Mar 2010 21:27:50 +0400 Subject: [PATCH 4/4] s4: pass config file location to samba_dnsupdate --- 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