Skip to content

Instantly share code, notes, and snippets.

View AddaxSoft's full-sized avatar
💭
<XSSing

A.K. AddaxSoft

💭
<XSSing
View GitHub Profile
@AddaxSoft
AddaxSoft / sysdeps\posix\system.c
Last active August 29, 2015 14:01 — forked from vanhoefm/sysdeps\posix\system.c
Typo correction SELL_PATH => SHELL_PATH
#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;