progs/shell.c
author Christian Urban <urbanc@in.tum.de>
Sat, 21 Jan 2017 00:39:23 +0000
changeset 511 7cd139cfe901
parent 221 ae6074cc446a
permissions -rw-r--r--
merged

#include <stdio.h>

int main()
{  char *name[2];
   name[0] = "/bin/sh";
   name[1] = NULL;
   execve(name[0], name, NULL);
}