summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-22 09:47:46 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-22 09:48:14 +0200
commit9f43a07f10639c5b41b45448e551e43914eefe32 (patch)
tree603e61d21ec81bddafacca527abebe0e841eedfd /src/shared
parentman: update URL refernce in daemon(7) (diff)
downloadsystemd-9f43a07f10639c5b41b45448e551e43914eefe32.tar.xz
systemd-9f43a07f10639c5b41b45448e551e43914eefe32.zip
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...
Diffstat (limited to 'src/shared')
-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;
}
}