mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
busybox: restore previous inittab handling when terminal can't be accessed (closes: #6181)
SVN-Revision: 18485
This commit is contained in:
parent
bb4a7fcec3
commit
0153a9bfea
@ -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…
Reference in New Issue
Block a user