Use ftruncate() at the end of a --sparse file.
Fixes bug 7337.
3 files changed