summaryrefslogtreecommitdiff
path: root/apt-inst/deb/debfile.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-03-20 19:23:32 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-03-20 19:23:32 +0100
commit319790f4f86f595724fb2bd5aa6274d345469010 (patch)
tree0c2686423a217f557fbdd990111d6947a5d228e7 /apt-inst/deb/debfile.cc
parent571449d4444a8a6f5c55dce318cdf16805c04743 (diff)
* methods/rred.cc:
- check return of writev() as gcc recommends * methods/mirror.cc: - check return of chdir() as gcc recommends * apt-pkg/deb/dpkgpm.cc: - check return of write() a gcc recommends * apt-inst/deb/debfile.cc: - check return of chdir() as gcc recommends * apt-inst/deb/dpkgdb.cc: - check return of chdir() as gcc recommends
Diffstat (limited to 'apt-inst/deb/debfile.cc')
-rw-r--r--apt-inst/deb/debfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-inst/deb/debfile.cc b/apt-inst/deb/debfile.cc
index 4bd065cf8..aeab82e82 100644
--- a/apt-inst/deb/debfile.cc
+++ b/apt-inst/deb/debfile.cc
@@ -121,7 +121,7 @@ bool debDebFile::ExtractControl(pkgDataBase &DB)
// Switch out of the tmp directory.
if (chdir(Cwd.c_str()) != 0)
- chdir("/");
+ return _error->Errno("chdir",_("Unable to change to %s"),Cwd.c_str());
return true;
}