Fixup wrong chroot

This commit is contained in:
Matthew Bauer 2017-05-08 00:01:12 -05:00
parent cf35dc5403
commit 6b6f897b28

View File

@ -220,8 +220,8 @@ int main(int argc, char *argv[]) {
update_map(map_buf, "/proc/self/gid_map");
// chroot to rootdir
if (chroot(appdir) < 0) {
err_exit("chroot(%s)", appdir);
if (chroot(rootdir) < 0) {
err_exit("chroot(%s)", rootdir);
}
chdir("/");