blob: 68016e529a8aa83388fd3ed9ef357bd9f88359c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <sys/types.h>
#include <skalibs/bytestr.h>
#include <skalibs/env.h>
#include <skalibs/djbunix.h>
void pathexec_r_name (char const *file, char const *const *argv, char const *const *envp, size_t envlen, char const *modifs, size_t modiflen)
{
size_t n = envlen + 1 + byte_count(modifs, modiflen, '\0') ;
char const *v[n] ;
if (env_merge(v, n, envp, envlen, modifs, modiflen))
pathexec_run(file, argv, v) ;
}
|