summaryrefslogtreecommitdiffstats
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 67189fef6d..b8ff184af0 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1415,7 +1415,7 @@ static void redirect_telinit(int argc, char *argv[]) {
if (getpid_cached() == 1)
return;
- if (!strstr(program_invocation_short_name, "init"))
+ if (!invoked_as(argv, "init"))
return;
execv(SYSTEMCTL_BINARY_PATH, argv);