diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-19 09:05:58 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-19 09:05:58 +0100 |
commit | 76dbf3cee365788eb7291c96f06b73a3769946d6 (patch) | |
tree | 96a77342412f666dac44b7db9285d859305c76f0 /apt-pkg/contrib/mmap.cc | |
parent | e08e66ca82147b72454964fdd624002f9b23290e (diff) | |
parent | 0d5603b886f67562c105b03820c595ac7ae3451a (diff) |
merged from the debian-experimental2 branch
Diffstat (limited to 'apt-pkg/contrib/mmap.cc')
-rw-r--r-- | apt-pkg/contrib/mmap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc index a67ab3698..160718ea5 100644 --- a/apt-pkg/contrib/mmap.cc +++ b/apt-pkg/contrib/mmap.cc @@ -85,7 +85,7 @@ bool MMap::Map(FileFd &Fd) return _error->Error("Compressed file %s can only be mapped readonly", Fd.Name().c_str()); Base = new unsigned char[iSize]; if (Fd.Seek(0L) == false || Fd.Read(Base, iSize) == false) - return false; + return _error->Error("Compressed file %s can't be read into mmap", Fd.Name().c_str()); return true; } |