[dm-devel] bug: dmsetup fails to parse concise tables
Kurt Garloff
kurt at garloff.de
Mon Feb 25 14:29:47 UTC 2019
Hi Alasdair,
On 25/02/2019 14:19, Alasdair G Kergon wrote:
> On Sat, Feb 23, 2019 at 11:01:45PM +0100, Kurt Garloff wrote:
>> Fixing patch is attached. The parser not never get to the third entry ...
> Try this.
>
> Alasdair
>
> --- a/tools/dmsetup.c
> +++ b/tools/dmsetup.c
> @@ -369,7 +369,7 @@ static int _parse_table_lines(struct dm_task *dmt)
>
> do {
> /* Identify and terminate each line */
> - if ((next_pos = strchr(_table, '\n')))
> + if ((next_pos = strchr(pos, '\n')))
> *next_pos++ = '\0';
> if (!_parse_line(dmt, pos, "", ++line))
> return_0;
>
Yes, that is identical to what I attached :-)
Thanks for applying!
--
Kurt Garloff <kurt at garloff.de>
Cologne, Germany
More information about the dm-devel
mailing list