on master help sign in
Fixup wrong chroot
commit6b6f897b28ebda81ae410f78c10ca826320e768e authorMatthew Bauer <mjbauer95@gmail.com> dateMon 8 May 2017, 00:01 (9 years ago) parentcf35dc5
1 file changed+2−2
AppRun.c+2−2
AppRun.c+2−2
@@ -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("/");