summaryrefslogtreecommitdiff
path: root/src/libenvexec/xmexec_af.c
blob: 240220b65190d234fc463649bbf74306af3b7fc1 (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 xmexec_af (char const *file, char const *const *argv, char const *const *envp, size_t envlen)
{
  xmexec_af(file, argv, envp, envlen) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}