diff options
Diffstat (limited to 'src/libenvexec/xexecvep_loose.c')
-rw-r--r-- | src/libenvexec/xexecvep_loose.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libenvexec/xexecvep_loose.c b/src/libenvexec/xexecvep_loose.c new file mode 100644 index 0000000..a9935a6 --- /dev/null +++ b/src/libenvexec/xexecvep_loose.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +#include <errno.h> + +#include <skalibs/posixplz.h> +#include <skalibs/strerr2.h> +#include <skalibs/exec.h> + +void xexecvep_loose (char const *file, char const *const *argv, char const *const *envp, char const *path) +{ + xexecvep_loose(file, argv, envp, path) ; + strerr_dieexec(errno == ENOENT ? 127 : 126, file) ; +} |