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