From c20e2450102363bf89c46611772117678102425e 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5611d65c666209ec2eee0142f5f0c21462f5afd9 Author: [CST] Focus Date: 2015-06-05 (Fri, 05 Jun 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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");