/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2706 Revision 2731
975 int opt; 975 int opt;
976 976
977 service = argv[1]; 977 service = argv[1];
978 applet = rc_xstrdup (basename (service)); 978 applet = rc_xstrdup (basename (service));
979 atexit (cleanup); 979 atexit (cleanup);
980
981 /* Change dir to / to ensure all init scripts don't use stuff in pwd */
982 chdir ("/");
980 983
981 /* Show help if insufficient args */ 984 /* Show help if insufficient args */
982 if (argc < 3) { 985 if (argc < 3) {
983 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL); 986 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);
984 eerrorx ("%s: failed to exec `" RCSCRIPT_HELP "': %s", 987 eerrorx ("%s: failed to exec `" RCSCRIPT_HELP "': %s",

Legend:
Removed from v.2706  
changed lines
  Added in v.2731

  ViewVC Help
Powered by ViewVC 1.1.20