From 76c5586ea0b3b98ae42f2000c94c04297391f1af Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 20 Dec 2019 03:19:05 +0000 Subject: Always execute execline scripts with -P --- src/conn-tools/s6-ipcserver-access.c | 2 +- src/supervision/s6-notifyoncheck.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ; -- cgit v1.2.3