summaryrefslogtreecommitdiff
path: root/src/libstddjb/xpathexec_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/xpathexec_r.c')
-rw-r--r--src/libstddjb/xpathexec_r.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/xpathexec_r.c b/src/libstddjb/xpathexec_r.c
index 02628f3..a44fc0f 100644
--- a/src/libstddjb/xpathexec_r.c
+++ b/src/libstddjb/xpathexec_r.c
@@ -1,10 +1,12 @@
/* ISC license. */
+#include <errno.h>
+
#include <skalibs/djbunix.h>
#include <skalibs/strerr2.h>
void xpathexec_r (char const *const *argv, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
{
pathexec_r(argv, envp, envlen, modifs, modiflen) ;
- strerr_dieexec(111, argv[0]) ;
+ strerr_dieexec(errno == ENOENT ? 127 : 126, argv[0]) ;
}