]> Zhao Yanbai Git Server - minix.git/commitdiff
RS: invoke a shell explicitly for scripts
authorBen Gras <ben@minix3.org>
Fri, 16 Nov 2012 15:34:14 +0000 (16:34 +0100)
committerBen Gras <ben@minix3.org>
Fri, 16 Nov 2012 15:34:14 +0000 (16:34 +0100)
. don't rely on the scripts to be executable
  (and they aren't any more)

servers/rs/manager.c

index 0dc7a76d8555f18eed8304581532b786c5851276..58d437ea703d69887ab5484030999289f3673149 100644 (file)
@@ -5,6 +5,8 @@
  *   Jul 22, 2005:     Created  (Jorrit N. Herder)
  */
 
+#include <paths.h>
+
 #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));