mailing list of musl libc
 help / color / mirror / code / Atom feed
180bb2aa0c9dff6351f0534a4555a2f9b7235cb5 blob 318 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#include <unistd.h>
#include <errno.h>
#include "libc.h"

int
__execsh(const char *file, char *const argv[])
{
	int i, argc;
	char **p;

	for (argc=1, p=(char **)argv; *p; ++argc, ++p);

	char *nargv[argc+1];
	nargv[0] = (char *)file;
	for (i=0; i<argc; ++i)
		nargv[i+1] = argv[i];
	return execv("/bin/sh", nargv);
}
debug log:

solving 180bb2aa ...
found 180bb2aa in https://inbox.vuxu.org/musl/20180311134745.GA92762@fifth.space/

applying [1/1] https://inbox.vuxu.org/musl/20180311134745.GA92762@fifth.space/
diff --git a/src/process/execsh.c b/src/process/execsh.c
new file mode 100644
index 00000000..180bb2aa

Checking patch src/process/execsh.c...
Applied patch src/process/execsh.c cleanly.

index at:
100644 180bb2aa0c9dff6351f0534a4555a2f9b7235cb5	src/process/execsh.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).