summaryrefslogtreecommitdiff
path: root/src/home/homed-home.c
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-08-29 19:57:24 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-30 17:04:01 +0200
commit43269733ef5e987339b06bd407e4fccf5f76cbe3 (patch)
tree52aef46303b3a14f39e7e6b1047db0cf01b2480a /src/home/homed-home.c
parent6d95e7d9b263c94e94704e3125cb790840b76ca2 (diff)
downloadsystemd-43269733ef5e987339b06bd407e4fccf5f76cbe3.tar.gz
homed: fix log message to honor real homework path
This seems to be overridable by setting the SYSTEMD_HOMEWORK_PATH env variable, but the error message always printed the SYSTEMD_HOMEWORK_PATH constant.
Diffstat (limited to 'src/home/homed-home.c')
-rw-r--r--src/home/homed-home.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c
index 6a6cde7c02..28459f2686 100644
--- a/src/home/homed-home.c
+++ b/src/home/homed-home.c
@@ -1045,7 +1045,7 @@ static int home_start_work(Home *h, const char *verb, UserRecord *hr, UserRecord
homework = getenv("SYSTEMD_HOMEWORK_PATH") ?: SYSTEMD_HOMEWORK_PATH;
execl(homework, homework, verb, NULL);
- log_error_errno(errno, "Failed to invoke " SYSTEMD_HOMEWORK_PATH ": %m");
+ log_error_errno(errno, "Failed to invoke %s: %m", homework);
_exit(EXIT_FAILURE);
}