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