chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc219d7
)
util: do not strip /dev prefix twice
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 20 Jun 2014 22:44:39 +0000
(18:44 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 20 Jun 2014 22:44:39 +0000
(18:44 -0400)
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index aaf109ea63e6f89d7c7edc8bfd7aea5f88d9034b..882a6908f2b182833bf220db6f719245cc0700f6 100644
(file)
--- 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;
}