diff options
| author | Richard Jones <rjones@redhat.com> | 2010-04-10 13:17:50 +0100 |
|---|---|---|
| committer | Richard Jones <rjones@redhat.com> | 2010-04-10 13:43:18 +0100 |
| commit | cb9350019cc6382a35c98f522c9c4d221c92b605 (patch) | |
| tree | 9bd1ad227b7d11fda6a9d2ef258df1c0c50fdeb1 /python/run-python-tests | |
| parent | 440ad646cdf31bdb5ad2bc92fc51fa6df3fb9c63 (diff) | |
| download | libguestfs-cb9350019cc6382a35c98f522c9c4d221c92b605.tar.gz libguestfs-cb9350019cc6382a35c98f522c9c4d221c92b605.tar.xz libguestfs-cb9350019cc6382a35c98f522c9c4d221c92b605.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.
Diffstat (limited to 'python/run-python-tests')
0 files changed, 0 insertions, 0 deletions
