summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-09 00:21:20 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-09 06:08:14 +0900
commitf86a388de339bc9fd3bc90df7de0d9693b52369f (patch)
treeb23af48d5f5a7942d0ec7337a25ceb5067aac528 /src/core
parentcdccdea2ad05580979bb81faa9123a603ed3e091 (diff)
downloadsystemd-f86a388de339bc9fd3bc90df7de0d9693b52369f.tar.gz
core/service: fix error cause in the log
Fixes a bug caused by a5648b809457d120500b2acb18b31e2168a4817a. Fixes #27575.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/service.c b/src/core/service.c
index a7fd518fee..5a06cc8a1d 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -1115,7 +1115,7 @@ static int service_load_pid_file(Service *s, bool may_warn) {
r = chase(s->pid_file, NULL, 0, NULL, &fd);
}
if (r < 0)
- return log_unit_full_errno(UNIT(s), prio, fd,
+ return log_unit_full_errno(UNIT(s), prio, r,
"Can't open PID file %s (yet?) after %s: %m", s->pid_file, service_state_to_string(s->state));
/* Let's read the PID file now that we chased it down. But we need to convert the O_PATH fd