]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/mmap.cc
for filesystems not supporting mmap'ing a file we need to use a
[apt.git] / apt-pkg / contrib / mmap.cc
index aaa9da44f2276672c7c1d05f32600e10294e41a4..3e6ef3520d2520705ec8eb5aae82b6bb7bc8d51b 100644 (file)
@@ -102,6 +102,7 @@ bool MMap::Map(FileFd &Fd)
         {
            // for readonly, we don't need sync, so make it simple
            Base = malloc(iSize);
+           SyncToFd = new FileFd();
            return Fd.Read(Base, iSize);
         }
         // FIXME: Writing to compressed fd's ?