projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b67f05d
)
portabled: Make use of SYNTHETIC_ERRNO()
author
Lennart Poettering
<lennart@poettering.net>
Thu, 4 Jul 2019 14:54:39 +0000
(16:54 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 4 Jul 2019 17:45:23 +0000
(19:45 +0200)
src/portable/portabled.c
patch
|
blob
|
history
diff --git
a/src/portable/portabled.c
b/src/portable/portabled.c
index 5464360f894cc9eb37c3926dcbcc000b85c77c50..c74ec429627b721a6b8d85d857437d5eea2cbf2e 100644
(file)
--- a/
src/portable/portabled.c
+++ b/
src/portable/portabled.c
@@
-134,10
+134,8
@@
static int run(int argc, char *argv[]) {
umask(0022);
- if (argc != 1) {
- log_error("This program takes no arguments.");
- return -EINVAL;
- }
+ if (argc != 1)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "This program takes no arguments.");
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, SIGTERM, SIGINT, -1) >= 0);