projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb41f1
)
bootspec: use SYNTHETIC_ERRNO() at one more place
author
Lennart Poettering
<lennart@poettering.net>
Mon, 28 Jan 2019 16:32:04 +0000
(17:32 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 1 Mar 2019 11:41:32 +0000
(12:41 +0100)
src/shared/bootspec.c
patch
|
blob
|
history
diff --git
a/src/shared/bootspec.c
b/src/shared/bootspec.c
index
410930e
..
c60627e
100644
(file)
--- a/
src/shared/bootspec.c
+++ b/
src/shared/bootspec.c
@@
-50,10
+50,8
@@
static int boot_entry_load(const char *path, BootEntry *entry) {
assert(entry);
c = endswith_no_case(path, ".conf");
- if (!c) {
- log_error("Invalid loader entry filename: %s", path);
- return -EINVAL;
- }
+ if (!c)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid loader entry filename: %s", path);
b = basename(path);
tmp.id = strndup(b, c - b);