chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: handle correctly template units for edit verb
[elogind.git]
/
src
/
shared
/
conf-parser.c
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index f9a3459caa2ca65eacd7fc96f0c18fdfc481eb50..5fe983a84786b60d4171fb3d08b293a27d8bddd8 100644
(file)
--- a/
src/shared/conf-parser.c
+++ b/
src/shared/conf-parser.c
@@
-367,7
+367,7
@@
int config_parse(const char *unit,
if (feof(f))
break;
if (feof(f))
break;
- log_error
(
"Failed to read configuration file '%s': %m", filename);
+ log_error
_errno(errno,
"Failed to read configuration file '%s': %m", filename);
return -errno;
}
return -errno;
}
@@
-428,8
+428,8
@@
int config_parse(const char *unit,
if (r < 0) {
if (warn)
if (r < 0) {
if (warn)
- log_warning
("Failed to parse file '%s': %s
",
-
filename, strerror(-r)
);
+ log_warning
_errno(r, "Failed to parse file '%s': %m
",
+
filename
);
return r;
}
}
return r;
}
}