diff --git a/CHANGELOG b/CHANGELOG index 596590a..f8a7504 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -20,6 +20,7 @@ xx/xx/2018 autofs-5.1.5 - add conditional inclusion of fedfs binaries. - add an example fedfs master map entry to the installed master map. - improve hostname lookup error logging. +- tiny patch for autofs typo and possible bug. 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/lib/defaults.c b/lib/defaults.c index d20c190..ae4d27c 100644 --- a/lib/defaults.c +++ b/lib/defaults.c @@ -1207,12 +1207,12 @@ unsigned int defaults_read_config(unsigned int to_syslog) conf = open_fopen_r(DEFAULT_CONFIG_FILE); if (!conf) - message(to_syslog, "failed to to open config %s", + message(to_syslog, "failed to open config %s", DEFAULT_CONFIG_FILE); oldconf = open_fopen_r(OLD_CONFIG_FILE); - if (!oldconf) - message(to_syslog, "failed to to open old config %s", + if (!oldconf && !conf) + message(to_syslog, "failed to open old config %s", OLD_CONFIG_FILE); /* Neither config has been updated */