diff options
Diffstat (limited to 'src/libenvexec/exec_ae.c')
-rw-r--r-- | src/libenvexec/exec_ae.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libenvexec/exec_ae.c b/src/libenvexec/exec_ae.c new file mode 100644 index 0000000..3c28722 --- /dev/null +++ b/src/libenvexec/exec_ae.c @@ -0,0 +1,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) ; +} |