mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
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 commit9f43a07f10) (cherry picked from commit31dc5786e0)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
385c0cd3b0
commit
ed15dbd87d
@@ -320,8 +320,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user