aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2018-06-08 15:15:51 +0200
committerlns <matzeton@googlemail.com>2018-06-08 15:15:51 +0200
commit0e1a9f70b3e720b506d69db6c920ce017834ae94 (patch)
tree8b6bb2a337af236975f779c2e82ef5d308bb7136 /src/main.c
parent18914495e90639c12eeec0805bbc74c82700e205 (diff)
POTD skeleton #98.
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ebbc2e8..6156bc3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -58,8 +58,7 @@ static void jail_preinit(char jail_hosts[][2][NI_MAXHOST],
jail_hosts[i][0], jail_ports[i][0]);
jail_init_ctx(&ctx[i], MAX_STACKSIZE);
- ctx[i]->newroot = strdup("/home/lns/git/busybox/sysroot");
- //ctx[i]->newroot = strdup("/home/toni/git/busybox/_install");
+ ctx[i]->newroot = getopt_str(OPT_ROOT);
ABORT_ON_FATAL( jail_setup(ctx[i], jail_hosts[i][0], jail_ports[i][0]),
"Jail daemon setup" );
ABORT_ON_FATAL( jail_validate_ctx(ctx[i]),