]> err.no Git - util-linux/commit
fdisk: check returns in fdisk from partition changes
authorMike Frysinger <vapier@gentoo.org>
Sat, 14 Jul 2007 17:32:37 +0000 (13:32 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2007 21:03:45 +0000 (23:03 +0200)
commitcc2ce9454a150fc21fa2e73723b13f7dc287325a
tree0ca7b24d1261c151ced4e7c1d47a0bb7cc5b3147
parent697d58e867d6c2a5746f495cb5cab24994ce808e
fdisk: check returns in fdisk from partition changes

currently the code in fdisk which changes partition types is a bit fragile ...
it assumes the partition type succeeded instead of checking the user input or
for errors.  ive tweaked the sub functions to return a value indicative of the
functions' success and fdisk now checks/reports based on that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fdisk/fdisk.c
fdisk/fdisksgilabel.c
fdisk/fdisksgilabel.h
fdisk/fdisksunlabel.c
fdisk/fdisksunlabel.h