diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-10 13:17:50 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-12 19:04:13 +0100 |
commit | 7095bab6110a6e10d52c6c873082df8185aefd8c (patch) | |
tree | 1dfc3cc8e0cd17eecf436ac3c71914ad860e2459 /python/guestfs-py.c | |
parent | b15faa431906acfee94245c2d951ea285eaf0d0b (diff) | |
download | libguestfs-7095bab6110a6e10d52c6c873082df8185aefd8c.tar.gz libguestfs-7095bab6110a6e10d52c6c873082df8185aefd8c.tar.xz libguestfs-7095bab6110a6e10d52c6c873082df8185aefd8c.zip |
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.
(cherry picked from commit cb9350019cc6382a35c98f522c9c4d221c92b605)
Diffstat (limited to 'python/guestfs-py.c')
0 files changed, 0 insertions, 0 deletions