summaryrefslogtreecommitdiff
path: root/src/libposixplz/execvep_loose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libposixplz/execvep_loose.c')
-rw-r--r--src/libposixplz/execvep_loose.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libposixplz/execvep_loose.c b/src/libposixplz/execvep_loose.c
new file mode 100644
index 0000000..7506362
--- /dev/null
+++ b/src/libposixplz/execvep_loose.c
@@ -0,0 +1,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) ;
+}