]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homed: fix log message to honor real homework path
authorFlorian Klink <flokli@flokli.de>
Sat, 29 Aug 2020 17:57:24 +0000 (19:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Sep 2020 15:23:43 +0000 (17:23 +0200)
This seems to be overridable by setting the SYSTEMD_HOMEWORK_PATH env
variable, but the error message always printed the SYSTEMD_HOMEWORK_PATH
constant.

(cherry picked from commit 43269733ef5e987339b06bd407e4fccf5f76cbe3)

src/home/homed-home.c

index f0c157cb7d882a117e8d1923aaaea6b41aa0c7ac..35b325413fd1db77bdffc86df8d2fcbe34eaea38 100644 (file)
@@ -1042,7 +1042,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);
         }