summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-20 18:44:39 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-20 18:44:39 -0400
commit0d460faf732ff3c9483dbfa5db6905d53c2e2522 (patch)
treee4388b0367f5919ea93ecced4926306549593e8f /src/shared/util.c
parentcc219d7bab9172bc28e5c07c4346fd1d36b2272a (diff)
util: do not strip /dev prefix twice
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index aaf109ea63..882a6908f2 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -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;
}