diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-06 18:50:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-06 18:50:05 +0200 |
commit | f8d8aa1cea915ce115345e6e729eddc80e86f021 (patch) | |
tree | abceef94710d221816cf56343b7cadf10de50e5c /init | |
parent | 87fb72032e6aa6abe5ac8fb05d22f43e8dde557b (diff) | |
download | busybox-w32-f8d8aa1cea915ce115345e6e729eddc80e86f021.tar.gz busybox-w32-f8d8aa1cea915ce115345e6e729eddc80e86f021.tar.bz2 busybox-w32-f8d8aa1cea915ce115345e6e729eddc80e86f021.zip |
libbb: add skip_dev_pfx()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index 481f55167..2eb8f1a54 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -568,9 +568,7 @@ static void parse_inittab(void) | |||
568 | goto bad_entry; | 568 | goto bad_entry; |
569 | /* turn .*TTY -> /dev/TTY */ | 569 | /* turn .*TTY -> /dev/TTY */ |
570 | if (tty[0]) { | 570 | if (tty[0]) { |
571 | if (strncmp(tty, "/dev/", 5) == 0) | 571 | tty = concat_path_file("/dev/", skip_dev_pfx(tty)); |
572 | tty += 5; | ||
573 | tty = concat_path_file("/dev/", tty); | ||
574 | } | 572 | } |
575 | new_init_action(1 << action, token[3], tty); | 573 | new_init_action(1 << action, token[3], tty); |
576 | if (tty[0]) | 574 | if (tty[0]) |