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