busybox: restore previous inittab handling when terminal can't be accessed (closes: #6181)

SVN-Revision: 18485
master
Nicolas Thill 15 years ago
parent bb4a7fcec3
commit 0153a9bfea
  1. 2
      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);
+ }

Loading…
Cancel
Save