busybox: restore previous inittab handling when terminal can't be accessed (closes...
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 22 Nov 2009 17:00:50 +0000 (17:00 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 22 Nov 2009 17:00:50 +0000 (17:00 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18485 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/busybox/patches/001-init_avoid_loop_opening_tty.patch

index 8cc9ca2..8f0ef1f 100644 (file)
@@ -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);
 +                      }
This page took 0.021711 seconds and 4 git commands to generate.