chiark / gitweb /
util: do not strip /dev prefix twice
[elogind.git] / src / shared / util.c
index aaf109ea63e6f89d7c7edc8bfd7aea5f88d9034b..882a6908f2b182833bf220db6f719245cc0700f6 100644 (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;
 }