X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fbusybox%2Fpatches%2F001-init_avoid_loop_opening_tty.patch;h=8f0ef1fc0a93195ada19634fe290b23b0b036325;hb=26df34e35ffe671aa1b5d62f22f7f0edccea7f68;hp=8cc9ca2c89b16e87333421858b852f34e6907c78;hpb=97d70dd8598d81077ffff6db013511670ee9aaad;p=openwrt-10.03%2F.git 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); + }