diff options
author | Michael Vogt <mvo@debian.org> | 2013-07-26 22:10:05 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-07-26 22:10:05 +0200 |
commit | 36a0c0f78675d10cae840a72268f70aed667fb96 (patch) | |
tree | c6c8ee79bd32e9d35786d90daf6964a7f59949a1 /apt-pkg/deb/dpkgpm.cc | |
parent | a1c4ae54803f85f83815cbf0f630ee867a2182e5 (diff) |
fix some coverity chroot() releated warnings
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index fb0473535..588ab68c4 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -134,6 +134,7 @@ static void dpkgChrootDirectory() std::cerr << "Chrooting into " << chrootDir << std::endl; if (chroot(chrootDir.c_str()) != 0) _exit(100); + chdir("/"); } /*}}}*/ |