diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-11-22 17:00:50 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-11-22 17:00:50 +0000 |
commit | 26df34e35ffe671aa1b5d62f22f7f0edccea7f68 (patch) | |
tree | ec328d4745584978a97460491354d00c7c707798 /package/busybox | |
parent | 97d70dd8598d81077ffff6db013511670ee9aaad (diff) |
busybox: restore previous inittab handling when terminal can't be accessed (closes: #6181)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox')
-rw-r--r-- | package/busybox/patches/001-init_avoid_loop_opening_tty.patch | 2 |
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 8cc9ca2c8..8f0ef1fc0 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); + } |