diff options
author | Florian Klink <flokli@flokli.de> | 2020-08-29 19:57:24 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-30 17:04:01 +0200 |
commit | 43269733ef5e987339b06bd407e4fccf5f76cbe3 (patch) | |
tree | 52aef46303b3a14f39e7e6b1047db0cf01b2480a /src/home/homed-home.c | |
parent | tree-wide: drop pointless zero initialization (#16900) (diff) | |
download | systemd-43269733ef5e987339b06bd407e4fccf5f76cbe3.tar.xz systemd-43269733ef5e987339b06bd407e4fccf5f76cbe3.zip |
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.c | 2 |
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); } |