mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
util: do not strip /dev prefix twice
This commit is contained in:
parent
cc219d7bab
commit
0d460faf73
@ -3612,9 +3612,6 @@ char *fstab_node_to_udev_node(const char *p) {
|
||||
bool tty_is_vc(const char *tty) {
|
||||
assert(tty);
|
||||
|
||||
if (startswith(tty, "/dev/"))
|
||||
tty += 5;
|
||||
|
||||
return vtnr_from_tty(tty) >= 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user