From: Ben Gras Date: Fri, 16 Nov 2012 15:34:14 +0000 (+0100) Subject: RS: invoke a shell explicitly for scripts X-Git-Tag: v3.2.1~205 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=2d43bf58077db2c05a49b6fa560f68cbcb568ef8;p=minix.git RS: invoke a shell explicitly for scripts . don't rely on the scripts to be executable (and they aren't any more) --- diff --git a/servers/rs/manager.c b/servers/rs/manager.c index 0dc7a76d8..58d437ea7 100644 --- a/servers/rs/manager.c +++ b/servers/rs/manager.c @@ -5,6 +5,8 @@ * Jul 22, 2005: Created (Jorrit N. Herder) */ +#include + #include "inc.h" #include "kernel/proc.h" @@ -1109,7 +1111,7 @@ static int run_script(struct rproc *rp) case -1: return kill_service(rp, "unable to fork script", errno); case 0: - execle(rp->r_script, rp->r_script, rpub->label, reason, + execle(_PATH_BSHELL, rp->r_script, rpub->label, reason, incarnation_str, (char*) NULL, envp); printf("RS: run_script: execl '%s' failed: %s\n", rp->r_script, strerror(errno));