summaryrefslogtreecommitdiff
path: root/src/libstddjb/xpathexec_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/xpathexec_run.c')
-rw-r--r--src/libstddjb/xpathexec_run.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/xpathexec_run.c b/src/libstddjb/xpathexec_run.c
index 3596f2f..7c054ee 100644
--- a/src/libstddjb/xpathexec_run.c
+++ b/src/libstddjb/xpathexec_run.c
@@ -1,10 +1,12 @@
/* ISC license. */
+#include <errno.h>
+
#include <skalibs/djbunix.h>
#include <skalibs/strerr2.h>
void xpathexec_run (char const *file, char const *const *argv, char const *const *envp)
{
pathexec_run(file, argv, envp) ;
- strerr_dieexec(111, file) ;
+ strerr_dieexec(errno == ENOENT ? 127 : 126, file) ;
}