daemon: More reliable parsing of the output from 'parted print'.
authorRichard Jones <rjones@redhat.com>
Sat, 10 Apr 2010 12:17:50 +0000 (13:17 +0100)
committerRichard Jones <rjones@redhat.com>
Sat, 10 Apr 2010 12:43:18 +0000 (13:43 +0100)
commitcb9350019cc6382a35c98f522c9c4d221c92b605
tree9bd1ad227b7d11fda6a9d2ef258df1c0c50fdeb1
parent440ad646cdf31bdb5ad2bc92fc51fa6df3fb9c63
daemon: More reliable parsing of the output from 'parted print'.

Previously we used strtok.  However this has the problem that
strtok considers multiple delimiter characters to be like a single
delimiter, eg. "1:::2" would be parsed the same as "1:2".  In
other words, the previous code would skip over or fail if there
are empty fields.
daemon/parted.c