Fix error handling of external sfdisk command.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jul 2009 15:36:13 +0000 (16:36 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jul 2009 15:36:13 +0000 (16:36 +0100)
commitfe27753ae5925cbe50042e47115364a57aadbbd7
treec1551273831fe7659a1e5125888f6c049e6b9ba0
parent896079e29b4d49c6c18ac3316a94bfbe2f307648
Fix error handling of external sfdisk command.

Should use 'pclose' instead of 'fclose' (although fclose happens
to work because of glibc internals).

The result of pclose is the exit status of the command, so we
need to test this is != 0.
daemon/sfdisk.c