Browse Source

When using --chroot, chdir to the new root

Paul Wouters 12 years ago
parent
commit
136c47ba7e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -10088,6 +10088,7 @@ int main(int argc, char *argv[])
                 if (chroot(chroot_dir) != 0) {
                        quit(1, "Unable to chroot");
                 }
+		chdir("/");
         }
 #endif