Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
<XSSing

A.K. AddaxSoft

💭
<XSSing
View GitHub Profile
@AddaxSoft
AddaxSoft / sysdeps\posix\system.c
Last active Aug 29, 2015 — forked from vanhoefm/sysdeps\posix\system.c
Typo correction SELL_PATH => SHELL_PATH
View sysdeps\posix\system.c
#define SHELL_PATH "/bin/sh" /* Path of the shell. */
#define SHELL_NAME "sh" /* Name to give it. */
static int do_system(const char *line)
{
if (fork() == 0) {
const char *new_argv[4];
new_argv[0] = SHELL_NAME;
new_argv[1] = "-c";
new_argv[2] = line;
You can’t perform that action at this time.