summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-20 15:43:10 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-20 15:43:10 +0000
commit5ffb9efa58b96b7dcfa8059fead344f32d34d166 (patch)
treea8dcd5eee8b095a1092c4fd83d704b9c5de2af2a /src/libstddjb/child_spawn.c
parent185b93046a8e940c052a8fa8a134501e6ff2f2c1 (diff)
downloadskalibs-5ffb9efa58b96b7dcfa8059fead344f32d34d166.tar.xz
env_mergen() should not fail, by policy
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r--src/libstddjb/child_spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c
index fb5be27..164f1b2 100644
--- a/src/libstddjb/child_spawn.c
+++ b/src/libstddjb/child_spawn.c
@@ -36,7 +36,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const
if (i+1 < n) modifs[m++] = ',' ;
}
modifs[m++] = 0 ;
- if (!env_mergen(newenv, envlen + 2, envp, envlen, modifs, m, 1)) goto errpi ;
+ env_mergen(newenv, envlen + 2, envp, envlen, modifs, m, 1) ;
if (n) fa[0].x.fd2[1] = p[0][1] ;
if (n >= 2) fa[1].x.fd2[1] = p[1][0] ;
pid = cspawn(prog, argv, newenv, CSPAWN_FLAGS_SIGBLOCKNONE, fa, n < 2 ? n : 2) ;