diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-23 08:52:28 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-23 08:52:28 +0000 |
commit | 3c8d5a7ca791a847112633c5778badfeb14bf4e8 (patch) | |
tree | 1c639c9814f8e78bc1e812df267612937265f775 /src/libstddjb | |
parent | 3af45453ce8370a6a9ba974c8150cb492f1d4b22 (diff) | |
download | skalibs-3c8d5a7ca791a847112633c5778badfeb14bf4e8.tar.xz |
Change xexecvep exit codes ; add namespaces sysdep
Diffstat (limited to 'src/libstddjb')
-rw-r--r-- | src/libstddjb/xexecvep.c | 3 |
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) ; } |