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