Merge pull request #6582 from poettering/logind-tty
various tty path parsing fixes
This commit is contained in:
+1
-2
@@ -3440,8 +3440,7 @@ static bool tty_may_match_dev_console(const char *tty) {
|
||||
if (!tty)
|
||||
return true;
|
||||
|
||||
if (startswith(tty, "/dev/"))
|
||||
tty += 5;
|
||||
tty = skip_dev_prefix(tty);
|
||||
|
||||
/* trivial identity? */
|
||||
if (streq(tty, "console"))
|
||||
|
||||
Reference in New Issue
Block a user