summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-22 16:47:46 +0900
committerLennart Poettering <lennart@poettering.net>2014-05-22 16:48:14 +0900
commit9f43a07f10639c5b41b45448e551e43914eefe32 (patch)
tree603e61d21ec81bddafacca527abebe0e841eedfd
parent0afedd300cbe53bd5a54aefc81cede1eae9a9ab8 (diff)
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...
-rw-r--r--src/shared/conf-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 062b15b86a..77a172e9f1 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -340,8 +340,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;
}
}