|
|
135b98 |
autofs-5.1.4 - tiny patch for autofs typo and possible bug
|
|
|
135b98 |
|
|
|
135b98 |
From: Todd Eigenschink <todd@fai2.com>
|
|
|
135b98 |
|
|
|
135b98 |
(1) The word "to" is doubled in two warnings.
|
|
|
135b98 |
|
|
|
135b98 |
(2) It prints a warning when it can't open the "old" config file, even
|
|
|
135b98 |
if it was able to open the default one. That's a reasonable warning if
|
|
|
135b98 |
it *couldn't* open the new one, but seems unnecessary if it could.
|
|
|
135b98 |
|
|
|
135b98 |
The patch removes the unneeded "to"s and only prints warning about the
|
|
|
135b98 |
old config file if it couldn't open the default one.
|
|
|
135b98 |
|
|
|
135b98 |
Signed-off-by: Todd Eigenschink <todd@fai2.com>
|
|
|
135b98 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
135b98 |
---
|
|
|
135b98 |
CHANGELOG | 1 +
|
|
|
135b98 |
lib/defaults.c | 6 +++---
|
|
|
135b98 |
2 files changed, 4 insertions(+), 3 deletions(-)
|
|
|
135b98 |
|
|
|
135b98 |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
135b98 |
+++ autofs-5.1.4/CHANGELOG
|
|
|
135b98 |
@@ -20,6 +20,7 @@ xx/xx/2018 autofs-5.1.5
|
|
|
135b98 |
- add conditional inclusion of fedfs binaries.
|
|
|
135b98 |
- add an example fedfs master map entry to the installed master map.
|
|
|
135b98 |
- improve hostname lookup error logging.
|
|
|
135b98 |
+- tiny patch for autofs typo and possible bug.
|
|
|
135b98 |
|
|
|
135b98 |
19/12/2017 autofs-5.1.4
|
|
|
135b98 |
- fix spec file url.
|
|
|
135b98 |
--- autofs-5.1.4.orig/lib/defaults.c
|
|
|
135b98 |
+++ autofs-5.1.4/lib/defaults.c
|
|
|
135b98 |
@@ -1207,12 +1207,12 @@ unsigned int defaults_read_config(unsign
|
|
|
135b98 |
|
|
|
135b98 |
conf = open_fopen_r(DEFAULT_CONFIG_FILE);
|
|
|
135b98 |
if (!conf)
|
|
|
135b98 |
- message(to_syslog, "failed to to open config %s",
|
|
|
135b98 |
+ message(to_syslog, "failed to open config %s",
|
|
|
135b98 |
DEFAULT_CONFIG_FILE);
|
|
|
135b98 |
|
|
|
135b98 |
oldconf = open_fopen_r(OLD_CONFIG_FILE);
|
|
|
135b98 |
- if (!oldconf)
|
|
|
135b98 |
- message(to_syslog, "failed to to open old config %s",
|
|
|
135b98 |
+ if (!oldconf && !conf)
|
|
|
135b98 |
+ message(to_syslog, "failed to open old config %s",
|
|
|
135b98 |
OLD_CONFIG_FILE);
|
|
|
135b98 |
|
|
|
135b98 |
/* Neither config has been updated */
|