summaryrefslogtreecommitdiff
path: root/src/daemontools-extras/s6-applyuidgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemontools-extras/s6-applyuidgid.c')
-rw-r--r--src/daemontools-extras/s6-applyuidgid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/daemontools-extras/s6-applyuidgid.c b/src/daemontools-extras/s6-applyuidgid.c
index a6e33d3..ba550c4 100644
--- a/src/daemontools-extras/s6-applyuidgid.c
+++ b/src/daemontools-extras/s6-applyuidgid.c
@@ -61,7 +61,6 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (uid && setuid(uid) < 0)
strerr_diefu1sys(111, "setuid") ;
- if (unexport) pathexec_r(argv, envp, env_len(envp), "UID\0GID\0GIDLIST", 16) ;
- else pathexec_run(argv[0], argv, envp) ;
- strerr_dieexec(111, argv[0]) ;
+ if (unexport) xpathexec_r(argv, envp, env_len(envp), "UID\0GID\0GIDLIST", 16) ;
+ else xpathexec_run(argv[0], argv, envp) ;
}