summaryrefslogtreecommitdiff
path: root/src/libstddjb/xpathexec_fromenv.c
blob: c434331301fffdf6bc3b4bfd364a1ae18d46dd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
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(errno == ENOENT ? 127 : 126, argv[0]) ;
}