dmg: fix reading of uncompressed chunks
authorChristoph Hellwig <hch@lst.de>
Fri, 7 May 2010 14:55:33 +0000 (16:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:05 +0000 (10:20 +0200)
commitcd02a24b6112da50816a8021d97a2b26038f7190
tree107c3a1890f2333d63df662a9bd3cd11a26440b5
parentdede4188cc817a039154ed2ecd7f3285f6b94056
dmg: fix reading of uncompressed chunks

When dmg_read_chunk encounters an uncompressed chunk it currently
calls read without any previous adjustment of the file postion.

This seems very wrong, and the "reference" implementation in
dmg2img does a search to the same offset as done in the various
compression cases, so do the same here.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/dmg.c