]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: fdisk_read_firstsector should seek to offset 0
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Nov 2014 02:19:01 +0000 (03:19 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Nov 2014 10:57:50 +0000 (11:57 +0100)
commita56b70f8ffb658a5a722c47cf77ea04c143fa0d9
tree91e17d5b7531fd2070347f213429f9e055bcb0b7
parentb4d27255f24cddbdf3480ca0988dada340abe2d3
libfdisk: fdisk_read_firstsector should seek to offset 0

The current offset of cxt->dev_fd may not be still 0, notably when
blkdev_get_size has to resort to using blkdev_find_size

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org
libfdisk/src/utils.c