diff -Nru /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/apt-pkg/contrib/mmap.cc /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/apt-pkg/contrib/mmap.cc --- /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/apt-pkg/contrib/mmap.cc 2007-09-16 13:32:39.000000000 +0100 +++ /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/apt-pkg/contrib/mmap.cc 2007-09-22 21:18:07.000000000 +0100 @@ -117,7 +117,7 @@ #ifdef _POSIX_SYNCHRONIZED_IO if ((Flags & ReadOnly) != ReadOnly) - if (msync((char *)Base,iSize,MS_SYNC) != 0) + if (msync((char *)Base,iSize,MS_SYNC) < 0) return _error->Errno("msync","Unable to write mmap"); #endif return true; @@ -134,7 +134,7 @@ #ifdef _POSIX_SYNCHRONIZED_IO unsigned long PSize = sysconf(_SC_PAGESIZE); if ((Flags & ReadOnly) != ReadOnly) - if (msync((char *)Base+(int)(Start/PSize)*PSize,Stop - Start,MS_SYNC) != 0) + if (msync((char *)Base+(int)(Start/PSize)*PSize,Stop - Start,MS_SYNC) < 0) return _error->Errno("msync","Unable to write mmap"); #endif return true; diff -Nru /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/configure /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/configure --- /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/configure 2007-09-18 17:47:03.000000000 +0100 +++ /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/configure 2007-09-22 21:39:20.000000000 +0100 @@ -1796,7 +1796,7 @@ cat >>confdefs.h <<_ACEOF -#define VERSION "0.7.6ubuntu10" +#define VERSION "0.7.6ubuntu11" _ACEOF PACKAGE="apt" diff -Nru /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/configure.in /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/configure.in --- /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/configure.in 2007-09-18 17:25:22.000000000 +0100 +++ /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/configure.in 2007-09-22 21:39:11.000000000 +0100 @@ -18,7 +18,7 @@ AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in) dnl -- SET THIS TO THE RELEASE VERSION -- -AC_DEFINE_UNQUOTED(VERSION,"0.7.6ubuntu10") +AC_DEFINE_UNQUOTED(VERSION,"0.7.6ubuntu11") PACKAGE="apt" AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE") AC_SUBST(PACKAGE) diff -Nru /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/debian/changelog /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/debian/changelog --- /tmp/i8O5xPRslD/apt-0.7.6ubuntu10/debian/changelog 2007-09-18 17:25:13.000000000 +0100 +++ /tmp/SaDye5aDwe/apt-0.7.6ubuntu11/debian/changelog 2007-09-22 21:39:30.000000000 +0100 @@ -1,3 +1,10 @@ +apt (0.7.6ubuntu11) gutsy; urgency=low + + * apt-pkg/contrib/mmap.cc: + - don't fail if msync() returns > 0 (LP: #144001) + + -- Colin Watson Sat, 22 Sep 2007 21:39:29 +0100 + apt (0.7.6ubuntu10) gutsy; urgency=low * apt-pkg/deb/dpkgpm.cc: