]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/mmap.cc
* Swedish translation update. Closes: #592366
[apt.git] / apt-pkg / contrib / mmap.cc
index aa184b13022cb3f9ddd654ac8fbe1c565eb1bc3a..69fb61fca7cd1a1e516d64bc1289deeef1b9b54d 100644 (file)
@@ -398,6 +398,8 @@ bool DynamicMMap::Grow() {
        if (Limit != 0 && WorkSpace >= Limit)
                return _error->Error(_("Unable to increase the size of the MMap as the "
                                       "limit of %lu bytes is already reached."), Limit);
+       if (GrowFactor <= 0)
+               return _error->Error(_("Unable to increase size of the MMap as automatic growing is disabled by user."));
 
        unsigned long const newSize = WorkSpace + GrowFactor;