summaryrefslogtreecommitdiff
path: root/src/activate
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-24 13:45:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-04-24 14:10:27 +0200
commit4355f1c9da0843708426f5c2c8b85179b934a5c7 (patch)
tree9a1e6ea1ffb0e813af692d802270aa86ee9142c0 /src/activate
parentb1c05b98bfbfd967ddeaad1c7f827153989013b8 (diff)
downloadsystemd-4355f1c9da0843708426f5c2c8b85179b934a5c7.tar.gz
Fix three uses of bogus errno value in logs (and returned value in one case)
Diffstat (limited to 'src/activate')
-rw-r--r--src/activate/activate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c
index eefea27720..d598965b47 100644
--- a/src/activate/activate.c
+++ b/src/activate/activate.c
@@ -186,7 +186,7 @@ static int exec_process(const char* name, char **argv, char **env, int start_fd,
r = rearrange_stdio(start_fd, start_fd, STDERR_FILENO); /* invalidates start_fd on success + error */
if (r < 0)
- return log_error_errno(errno, "Failed to move fd to stdin+stdout: %m");
+ return log_error_errno(r, "Failed to move fd to stdin+stdout: %m");
} else {
if (start_fd != SD_LISTEN_FDS_START) {