Change pwd to / for all init scripts, #181224.
This commit is contained in:
parent
0575c15993
commit
f9220d3e28
3
src/rc.c
3
src/rc.c
@ -668,6 +668,9 @@ int main (int argc, char **argv)
|
|||||||
atexit (cleanup);
|
atexit (cleanup);
|
||||||
newlevel = argv[0];
|
newlevel = argv[0];
|
||||||
|
|
||||||
|
/* Change dir to / to ensure all scripts don't use stuff in pwd */
|
||||||
|
chdir ("/");
|
||||||
|
|
||||||
/* Setup a signal handler */
|
/* Setup a signal handler */
|
||||||
signal (SIGINT, handle_signal);
|
signal (SIGINT, handle_signal);
|
||||||
signal (SIGQUIT, handle_signal);
|
signal (SIGQUIT, handle_signal);
|
||||||
|
Loading…
Reference in New Issue
Block a user