]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: more robust whole-disk detection
authorKarel Zak <kzak@redhat.com>
Thu, 17 Feb 2011 10:02:26 +0000 (11:02 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Feb 2011 10:02:26 +0000 (11:02 +0100)
commit2fa3fbe858fe194069a30b1b991b2473d4edc307
tree9ff48c463c9ae4c6f9511a4d21336b35a7c0045f
parente47bce7822ca910cf360d41acf67d4d9b31dd2be
fdisk: more robust whole-disk detection

In lib/wholedisk.c, i is set to 0. If fd was a -1, then at
line 18 geometry.start is used without it being initialized.

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/wholedisk.c