conf-parser: never consider it an error if we cannot load a drop-in file because it is missing

After all, we want to be able to boot with /etc empty one day...

(cherry picked from commit 9f43a07f10)
This commit is contained in:
Lennart Poettering
2014-06-16 18:30:44 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 13fc6c9bfa
commit 31dc5786e0
+2 -2
View File
@@ -336,8 +336,8 @@ int config_parse(const char *unit,
if (!f) {
f = ours = fopen(filename, "re");
if (!f) {
log_error("Failed to open configuration file '%s': %m", filename);
return -errno;
log_full(errno == ENOENT ? LOG_DEBUG : LOG_ERR, "Failed to open configuration file '%s': %m", filename);
return errno == ENOENT ? 0 : -errno;
}
}