X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/9dfc3e34ee54d00b68cc4cbb5cddcfa588fd07fb..f082191aa5d3ec9b1bf1cc0d7fbdb079c225c74a:/package/busybox/patches/001-init_avoid_loop_opening_tty.patch

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);
 +			}