chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fsck: include device name in the message about missing fsck
[elogind.git]
/
src
/
shared
/
conf-parser.c
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index 062b15b86a5b28443b281b563ca1b5491caabd61..158e9efd4cecb260bb15426379fa468e9c8dfe7b 100644
(file)
--- 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) {
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;
}
}
}
}
@@
-688,7
+688,7
@@
int config_parse_strv(const char *unit,
FOREACH_WORD_QUOTED(w, l, rvalue, state) {
char *n;
FOREACH_WORD_QUOTED(w, l, rvalue, state) {
char *n;
- n =
cunescape_length
(w, l);
+ n =
strndup
(w, l);
if (!n)
return log_oom();
if (!n)
return log_oom();