The msync manpage reports that msync *must* be called before munmap. Failure to do...
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Nov 2009 14:35:38 +0000 (15:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:50 +0000 (08:03 +0100)
commit5aa0ab328c36ecd4d7ec03f921e6027340c2ef13
tree6f74f6dfb3db57742f3f665bf2976640e3105979
parentb02bf7659f04f1fa203834bd75a2392b48e56c16
The msync manpage reports that msync *must* be called before munmap. Failure to do so may result in lost data. Fix an ifdef check, I really think we meant to check HAVE_MMAP here. (cherry picked from samba commit 74c8575b3f3b90ea21ae6aa7ccd95947838af956) (This used to be commit 8fd54bb55f0c23bd025d1719abcbe75c6a2ea8ac) (cherry picked from samba commit b39e332bd7803dd4ce8267f750c497b5deb837ee)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/io.c
lib/tdb/common/transaction.c