commit 76c5586ea0b3b98ae42f2000c94c04297391f1af
parent 19ecbe91d2ef699f3d2a063c50cbff4d7e46eb1e
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Fri, 20 Dec 2019 03:19:05 +0000
Always execute execline scripts with -P
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/conn-tools/s6-ipcserver-access.c b/src/conn-tools/s6-ipcserver-access.c
@@ -205,7 +205,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (params.exec.len)
{
- char *specialargv[4] = { EXECLINE_EXTBINPREFIX "execlineb", "-c", params.exec.s, 0 } ;
+ char *specialargv[4] = { EXECLINE_EXTBINPREFIX "execlineb", "-Pc", params.exec.s, 0 } ;
xpathexec_r((char const *const *)specialargv, envp, env_len(envp), params.env.s, params.env.len) ;
}
else xpathexec_r(argv, envp, env_len(envp), params.env.s, params.env.len) ;
diff --git a/src/supervision/s6-notifyoncheck.c b/src/supervision/s6-notifyoncheck.c
@@ -75,7 +75,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
{
ftrigr_t a = FTRIGR_ZERO ;
iopause_fd x[2] = { { .events = IOPAUSE_READ }, { .events = IOPAUSE_READ } } ;
- char const *childargv[4] = { EXECLINE_EXTBINPREFIX "execlineb", "-c", 0, 0 } ;
+ char const *childargv[4] = { EXECLINE_EXTBINPREFIX "execlineb", "-Pc", 0, 0 } ;
char const *checkprog = 0 ;
unsigned int fd ;
int df = 0 ;