From 5611d65c666209ec2eee0142f5f0c21462f5afd9 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 5 Jun 2015 17:13:43 +0300 Subject: [PATCH] eitd/sectionsd.cpp: fix ntp_system_cmd when config updated from GUI --- src/eitd/sectionsd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 07b03bbb7..a1bde5e70 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -2159,7 +2159,8 @@ bool CEitManager::Start() if (find_executable("ntpdate").empty()){ ntp_system_cmd_prefix = find_executable("ntpd"); if (!ntp_system_cmd_prefix.empty()){ - ntp_system_cmd = ntp_system_cmd_prefix + " -n -q -p " + ntpserver; + ntp_system_cmd_prefix += " -n -q -p "; + ntp_system_cmd = ntp_system_cmd_prefix + ntpserver; } else{ printf("[sectionsd] NTP Error: time sync not possible, ntpdate/ntpd not found\n");