Change pwd to / for all init scripts, #181224.
This commit is contained in:
parent
75f776732b
commit
0575c15993
@ -4,6 +4,7 @@
|
|||||||
26 Jun 2007; Roy Marples <uberlord@gentoo.org>:
|
26 Jun 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
--nocolor works again, #181011 thanks to Daniel Drake.
|
--nocolor works again, #181011 thanks to Daniel Drake.
|
||||||
|
Change pwd to / for all init scripts, #181224.
|
||||||
|
|
||||||
21 Jun 2007; Mike Frysinger <vapier@gentoo.org>:
|
21 Jun 2007; Mike Frysinger <vapier@gentoo.org>:
|
||||||
|
|
||||||
|
@ -978,6 +978,9 @@ int main (int argc, char **argv)
|
|||||||
applet = rc_xstrdup (basename (service));
|
applet = rc_xstrdup (basename (service));
|
||||||
atexit (cleanup);
|
atexit (cleanup);
|
||||||
|
|
||||||
|
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
|
||||||
|
chdir ("/");
|
||||||
|
|
||||||
/* Show help if insufficient args */
|
/* Show help if insufficient args */
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);
|
execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user