about summary refs log tree commit diff
path: root/src/libenvexec/mspawn_afn.c
blob: fe36fca115faf73a88f2aacbb37a623301c82179 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/env.h>
#include <skalibs/cspawn.h>

pid_t mspawn_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn, uint16_t flags, cspawn_fileaction const *fa, size_t n)
{
  char const *newenvp[envlen + modifn + 1] ;
  env_merge(newenvp, envlen + modifn + 1, envp, envlen, modif, modiflen) ;
  return cspawn(file, argv, newenvp, flags, fa, n) ;
}