[kpartx] bug fixes for dos extended partition [3/4]
authorChristophe Varoqui <root@xa-s05.(none)>
Thu, 1 Dec 2005 20:57:29 +0000 (21:57 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Thu, 1 Dec 2005 20:57:29 +0000 (21:57 +0100)
commit115826f65213942609d143ed1488cf86ef07668b
treeeb59b07ab946b0d3e006dfbd3f6b8f6e0746d57d
parent09e06d94d7796ae05a3978891a8766e02cad96d3
[kpartx] bug fixes for dos extended partition [3/4]

in the for loop in read_extended_partition,
'here' is updated if the next extended partition is found.

However, the 'here' value should be updated in the next while loop.
Otherwise it's possible that following partition table
entry refers updated value and generate wrong mapping.

I'm not sure if there is any partitioning tool which can generate
such table. But it's safer to fix this.

Jun'ichi Nomura, NEC
kpartx/dos.c