summaryrefslogtreecommitdiff
path: root/src/conn-tools/s6-ipcserver-access.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-08-28 13:59:16 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-08-28 13:59:16 +0000
commit04b699857c141a93fc981b83ba02b452ce3a2ddc (patch)
treef22701124126003ef8f3bca685c94b0de0cd9dec /src/conn-tools/s6-ipcserver-access.c
parenta4deb6285e4a3d4aa10fe1913e0be400ec4be25e (diff)
downloads6-04b699857c141a93fc981b83ba02b452ce3a2ddc.tar.xz
Switch to xpathexec_*
Diffstat (limited to 'src/conn-tools/s6-ipcserver-access.c')
-rw-r--r--src/conn-tools/s6-ipcserver-access.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conn-tools/s6-ipcserver-access.c b/src/conn-tools/s6-ipcserver-access.c
index b7f2ece..c423974 100644
--- a/src/conn-tools/s6-ipcserver-access.c
+++ b/src/conn-tools/s6-ipcserver-access.c
@@ -206,10 +206,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 } ;
- pathexec_r((char const *const *)specialargv, envp, env_len(envp), params.env.s, params.env.len) ;
- strerr_dieexec(111, specialargv[0]) ;
+ xpathexec_r((char const *const *)specialargv, envp, env_len(envp), params.env.s, params.env.len) ;
}
-
- pathexec_r(argv, envp, env_len(envp), params.env.s, params.env.len) ;
- strerr_dieexec(111, argv[0]) ;
+ else xpathexec_r(argv, envp, env_len(envp), params.env.s, params.env.len) ;
}