From: Harlan Stenn Date: Sat, 24 Jan 2015 10:44:12 +0000 (+0000) Subject: [Bug 2736] Show error message if we cannot open the config file X-Git-Tag: NTP_4_2_8P1_RC1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2578a8169a41e1110fa009593250ac28372cb428;p=thirdparty%2Fntp.git [Bug 2736] Show error message if we cannot open the config file bk: 54c3777ciPEMdCfiA7hf7lIdxjnpUg --- diff --git a/ChangeLog b/ChangeLog index 80b4ff162..880369261 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ * [Bug 2187] Update version number generation scripts. * [Bug 2617] Fix sntp Usage documentation section. * [Sec 2672] Code cleanup: On some OSes ::1 can be spoofed... +* [Bug 2736] Show error message if we cannot open the config file. * Copyright update. * Fix the package name. --- diff --git a/ntpd/ntp_config.c b/ntpd/ntp_config.c index 3bb9a1535..b9f0e24e3 100644 --- a/ntpd/ntp_config.c +++ b/ntpd/ntp_config.c @@ -4443,7 +4443,7 @@ getconfig( && check_netinfo && !(config_netinfo = get_netinfo_config()) #endif /* HAVE_NETINFO */ ) { - msyslog(LOG_INFO, "getconfig: Couldn't open <%s>", FindConfig(config_file)); + msyslog(LOG_INFO, "getconfig: Couldn't open <%s>: %m", FindConfig(config_file)); #ifndef SYS_WINNT io_open_sockets(); @@ -4457,7 +4457,7 @@ getconfig( * Broadcast clients can sometimes run without * a configuration file. */ - msyslog(LOG_INFO, "getconfig: Couldn't open <%s>", FindConfig(alt_config_file)); + msyslog(LOG_INFO, "getconfig: Couldn't open <%s>: %m", FindConfig(alt_config_file)); io_open_sockets(); return;