diff options
Diffstat (limited to 'src/libstddjb/xpathexec0_run.c')
-rw-r--r-- | src/libstddjb/xpathexec0_run.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/xpathexec0_run.c b/src/libstddjb/xpathexec0_run.c index c24e931..ab3e645 100644 --- a/src/libstddjb/xpathexec0_run.c +++ b/src/libstddjb/xpathexec0_run.c @@ -1,10 +1,12 @@ /* ISC license. */ +#include <errno.h> + #include <skalibs/djbunix.h> #include <skalibs/strerr2.h> void xpathexec0_run (char const *const *argv, char const *const *envp) { pathexec0_run(argv, envp) ; - strerr_dieexec(111, argv[0]) ; + strerr_dieexec(errno == ENOENT ? 127 : 126, argv[0]) ; } |