Seek back to current filepos when mmap()ing with NO_MMAP
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 15 Nov 2006 16:27:54 +0000 (17:27 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 15 Nov 2006 18:23:47 +0000 (10:23 -0800)
commit0a3881d4cfee5c4ee3991a1b14a10333355958f1
tree2e924a69d1ebc0c3a3e3f18fb7d34e68c23271e9
parente267c2f6f0784e242883b7d3fe5f36ef63d6950d
Seek back to current filepos when mmap()ing with NO_MMAP

"git-index-pack --fix-thin" relies on mmap() not changing the current
file position (otherwise the pack will be corrupted when writing the
final SHA1). Meet that expectation.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
compat/mmap.c