summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-12-20 03:19:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-12-20 03:19:05 +0000
commit76c5586ea0b3b98ae42f2000c94c04297391f1af (patch)
treef9b76d645d6a5d1611864de64c0ca317385b4907
parent19ecbe91d2ef699f3d2a063c50cbff4d7e46eb1e (diff)
downloads6-76c5586ea0b3b98ae42f2000c94c04297391f1af.tar.xz
Always execute execline scripts with -P
-rw-r--r--src/conn-tools/s6-ipcserver-access.c2
-rw-r--r--src/supervision/s6-notifyoncheck.c2
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
index 97f3204..9d78620 100644
--- 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
index 71b562f..c8a0e19 100644
--- 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 ;