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