diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-22 09:47:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-22 09:48:14 +0200 |
commit | 9f43a07f10639c5b41b45448e551e43914eefe32 (patch) | |
tree | 603e61d21ec81bddafacca527abebe0e841eedfd /src/shared | |
parent | man: update URL refernce in daemon(7) (diff) | |
download | systemd-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.c | 4 |
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; } } |