aboutsummaryrefslogtreecommitdiff
path: root/src/com_start.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/com_start.c')
-rw-r--r--src/com_start.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com_start.c b/src/com_start.c
index 65c1775..5744e39 100644
--- a/src/com_start.c
+++ b/src/com_start.c
@@ -109,12 +109,13 @@ com_start(void)
system_error(errno, "fork");
return 1;
}
if (pid == 0) {
char *argv[] = { SHELL, "-c", NULL, NULL };
argv[2] = genrc_command;
+ runas();
execvp(SHELL, argv);
system_error(errno, "failed to exec %s", genrc_program);
exit(127);
}
if (timedwaitpid(pid, &status)) {

Return to:

Send suggestions and report system problems to the System administrator.