summaryrefslogtreecommitdiff
path: root/src/libenvexec/exec_ae.c
blob: 3c2872208d81d6d76314bd7e6a6317231a715148 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <stdlib.h>

#include <skalibs/config.h>
#include <skalibs/posixplz.h>
#include <skalibs/exec.h>

void exec_ae (char const *file, char const *const *argv, char const *const *envp)
{
  char const *path = getenv("PATH") ;
  if (!path) path = SKALIBS_DEFAULTPATH ;
  execvep(file, argv, envp, path) ;
}