Change pwd to / for all init scripts, #181224.

This commit is contained in:
Roy Marples
2007-06-26 08:47:46 +00:00
parent 75f776732b
commit 0575c15993
2 changed files with 4 additions and 0 deletions

View File

@ -977,6 +977,9 @@ int main (int argc, char **argv)
service = argv[1];
applet = rc_xstrdup (basename (service));
atexit (cleanup);
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
chdir ("/");
/* Show help if insufficient args */
if (argc < 3) {