]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
fix some coverity chroot() releated warnings
[apt.git] / apt-pkg / deb / dpkgpm.cc
index fb04735353c85af96b62f20b2c54d4b1b85d8cc2..588ab68c45ec657c4bf59aa8c334cae3194dc97c 100644 (file)
@@ -134,6 +134,7 @@ static void dpkgChrootDirectory()
    std::cerr << "Chrooting into " << chrootDir << std::endl;
    if (chroot(chrootDir.c_str()) != 0)
       _exit(100);
+   chdir("/");
 }
                                                                        /*}}}*/