RS: invoke a shell explicitly for scripts
. don't rely on the scripts to be executable (and they aren't any more)
This commit is contained in:
parent
d27f8afc45
commit
2d43bf5807
|
@ -5,6 +5,8 @@
|
||||||
* Jul 22, 2005: Created (Jorrit N. Herder)
|
* Jul 22, 2005: Created (Jorrit N. Herder)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <paths.h>
|
||||||
|
|
||||||
#include "inc.h"
|
#include "inc.h"
|
||||||
|
|
||||||
#include "kernel/proc.h"
|
#include "kernel/proc.h"
|
||||||
|
@ -1109,7 +1111,7 @@ static int run_script(struct rproc *rp)
|
||||||
case -1:
|
case -1:
|
||||||
return kill_service(rp, "unable to fork script", errno);
|
return kill_service(rp, "unable to fork script", errno);
|
||||||
case 0:
|
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);
|
incarnation_str, (char*) NULL, envp);
|
||||||
printf("RS: run_script: execl '%s' failed: %s\n",
|
printf("RS: run_script: execl '%s' failed: %s\n",
|
||||||
rp->r_script, strerror(errno));
|
rp->r_script, strerror(errno));
|
||||||
|
|
Loading…
Reference in a new issue