summaryrefslogtreecommitdiff
path: root/src/libenvexec/xexecvep_loose.c
blob: 04f00853620ed839586050a9134471eacb89a775 (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/strerr.h>
#include <skalibs/exec.h>

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