1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

util: do not strip /dev prefix twice

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-06-20 18:44:39 -04:00
parent cc219d7bab
commit 0d460faf73

View File

@ -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;
}