summaryrefslogtreecommitdiff
path: root/src/libenvexec/xmexec0_afn.c
blob: 73eeb045eea6ff575c60943502e3d9c127dd0d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <errno.h>

#include <skalibs/exec.h>
#include <skalibs/strerr2.h>

void xmexec0_afn (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modif, size_t modiflen, size_t modifn)
{
  mexec0_afn(file, argv, envp, envlen, modif, modiflen, modifn) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}