diff options
author | Michael Vogt <egon@debian-devbox> | 2012-01-18 10:27:15 +0100 |
---|---|---|
committer | Michael Vogt <egon@debian-devbox> | 2012-01-18 10:27:15 +0100 |
commit | 743b2763c20e5612938f11679ef3524682728a7a (patch) | |
tree | 6d51388478bee999339325e9057f3ebe2bcb0a0f /apt-pkg/contrib/mmap.cc | |
parent | 5abee4863220c2d9b135dc832b33c8680e5ba12e (diff) | |
parent | 65c72a4b84273bf8063076bd74861b5931c2b8a5 (diff) |
* apt-pkg/contrib/fileutl.h:
- store the offset in the internal fd before calculate size of
the zlib-handled file to jump back to this place again
* apt-pkg/contrib/fileutl.h:
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; } |