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