summaryrefslogtreecommitdiff
path: root/src/libposixplz/execvep_loose.c
blob: 7506362f20b3886ef4907411e79fb9c87d6b8a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <unistd.h>
#include <skalibs/posixplz.h>
#include "posixplz-internal.h"

void execvep_loose (char const *file, char const *const *argv, char const *const *envp, char const *path)
{
  if (file[0] == '/')
    execve(file, (char *const *)argv, (char *const *)envp) ;
  else
    execvep_internal(file, argv, envp, path) ;
}