projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
safety fix for glob's vla usage: disallow patterns longer than PATH_MAX
[musl]
/
src
/
process
/
fexecve.c
1
#include <unistd.h>
2
#include <stdio.h>
3
4
int fexecve(int fd, char *const argv[], char *const envp[])
5
{
6
static const char proc[] = "/proc/self/fd/%d";
7
char buf[sizeof proc + 3*sizeof(int)];
8
snprintf(buf, sizeof buf, proc, fd);
9
return execve(buf, argv, envp);
10
}