]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2736] Show error message if we cannot open the config file
authorHarlan Stenn <stenn@ntp.org>
Sat, 24 Jan 2015 10:44:12 +0000 (10:44 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 24 Jan 2015 10:44:12 +0000 (10:44 +0000)
bk: 54c3777ciPEMdCfiA7hf7lIdxjnpUg

ChangeLog
ntpd/ntp_config.c

index 80b4ff162a87cc7e24cb320b1e677394510bfbe3..880369261959f9981d533f50d04492a73fb044da 100644 (file)
--- 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.
 ---
index 3bb9a15355df941cf581861be0fee186cced055c..b9f0e24e3ee1ae3aad7b4177a4738c6fce9adf15 100644 (file)
@@ -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;