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

Diff of /trunk/src/runscript.c

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

Revision 2731 Revision 2738
1138 1138
1139 /* Abort on a sighup here */ 1139 /* Abort on a sighup here */
1140 if (sighup) 1140 if (sighup)
1141 exit (EXIT_FAILURE); 1141 exit (EXIT_FAILURE);
1142 1142
1143 if (strcmp (optarg, "status") != 0 &&
1144 strcmp (optarg, "help") != 0) {
1145 /* Only root should be able to run us */
1146 if (geteuid () != 0)
1147 eerrorx ("%s: root access required", applet);
1148 }
1149
1143 /* Export the command we're running. 1150 /* Export the command we're running.
1144 This is important as we stamp on the restart function now but 1151 This is important as we stamp on the restart function now but
1145 some start/stop routines still need to behave differently if 1152 some start/stop routines still need to behave differently if
1146 restarting. */ 1153 restarting. */
1147 unsetenv ("RC_CMD"); 1154 unsetenv ("RC_CMD");

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

  ViewVC Help
Powered by ViewVC 1.1.20