Set environment variable to make ash happy. ash is a frequent enough
target....
This commit is contained in:
1
init.c
1
init.c
@@ -407,6 +407,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
|||||||
"SHELL=/bin/sh",
|
"SHELL=/bin/sh",
|
||||||
termType,
|
termType,
|
||||||
"USER=root",
|
"USER=root",
|
||||||
|
"ENV=/etc/profile",
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -407,6 +407,7 @@ static pid_t run(char *command, char *terminal, int get_enter)
|
|||||||
"SHELL=/bin/sh",
|
"SHELL=/bin/sh",
|
||||||
termType,
|
termType,
|
||||||
"USER=root",
|
"USER=root",
|
||||||
|
"ENV=/etc/profile",
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user