diff --git a/src/core/execute.c b/src/core/execute.c index d46476630c..ac741c2772 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -4157,7 +4157,7 @@ static bool tty_may_match_dev_console(const char *tty) { return true; /* if we could not resolve, assume it may */ /* "tty0" means the active VC, so it may be the same sometimes */ - return streq(resolved, tty) || (streq(resolved, "tty0") && tty_is_vc(tty)); + return path_equal(resolved, tty) || (streq(resolved, "tty0") && tty_is_vc(tty)); } bool exec_context_may_touch_console(const ExecContext *ec) {