summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-04 16:54:39 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-04 19:45:23 +0200
commite4c5d78e5fdcfdd895e861920fc46bcfdcc4b4ea (patch)
treeaed8365c21e1e9d7527348a52843492bd0c461a6
parentb67f05dabfa2d1aa99de8959e9bd5649d2ee05cb (diff)
downloadsystemd-e4c5d78e5fdcfdd895e861920fc46bcfdcc4b4ea.tar.gz
portabled: Make use of SYNTHETIC_ERRNO()
-rw-r--r--src/portable/portabled.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/portable/portabled.c b/src/portable/portabled.c
index 5464360f89..c74ec42962 100644
--- 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);