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

#include <errno.h>

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

void xexecvep (char const *file, char const *const *argv, char const *const *envp, char const *path)
{
  execvep(file, argv, envp, path) ;
  strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}