summaryrefslogtreecommitdiff
path: root/package/busybox/patches
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-11-22 17:00:50 +0000
committerNicolas Thill <nico@openwrt.org>2009-11-22 17:00:50 +0000
commit0153a9bfea5204a4b72e0900ddcc97dfc244a27b (patch)
treeb2fd323bf3cd44893ec87a961880464af609d645 /package/busybox/patches
parentbb4a7fcec3fe7ff59b6b98a0fcff200361f509d1 (diff)
downloadmtk-20170518-0153a9bfea5204a4b72e0900ddcc97dfc244a27b.zip
mtk-20170518-0153a9bfea5204a4b72e0900ddcc97dfc244a27b.tar.gz
mtk-20170518-0153a9bfea5204a4b72e0900ddcc97dfc244a27b.tar.bz2
busybox: restore previous inittab handling when terminal can't be accessed (closes: #6181)
SVN-Revision: 18485
Diffstat (limited to 'package/busybox/patches')
-rw-r--r--package/busybox/patches/001-init_avoid_loop_opening_tty.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/busybox/patches/001-init_avoid_loop_opening_tty.patch b/package/busybox/patches/001-init_avoid_loop_opening_tty.patch
index 8cc9ca2..8f0ef1f 100644
--- a/package/busybox/patches/001-init_avoid_loop_opening_tty.patch
+++ b/package/busybox/patches/001-init_avoid_loop_opening_tty.patch
@@ -6,7 +6,7 @@
*/
- if (a->pid == 0)
+ if (a->pid == 0) {
-+ if (a->terminal && access(a->terminal, R_OK | W_OK))
++ if (a->terminal[0] && access(a->terminal, R_OK | W_OK))
+ continue;
a->pid = run(a);
+ }