blob: ced2ae6ea7ab389778be86e7010a6f2d6159e46a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <skalibs/config.h>
#include <skalibs/env.h>
#include <skalibs/djbunix.h>
void pathexec_run (char const *file, char const *const *argv, char const *const *envp)
{
register char const *path = env_get("PATH") ;
if (!path) path = SKALIBS_DEFAULTPATH ;
execvep(file, argv, envp, path) ;
}
|