Re: mg: fix tagfile parsing

2023-03-28 Thread Omar Polo
On 2023/03/28 22:25:42 +0200, Theo Buehler wrote: > Contrary to what I convinced op@ to be the case, duplicate tags may exist > in legitimate tags files. So we should ignore duplicates rather than > erroring on them. This fixes parsing the /var/db/libc.tags file. > > $ grep -wc ^memcpy /var/db/li

mg: fix tagfile parsing

2023-03-28 Thread Theo Buehler
Contrary to what I convinced op@ to be the case, duplicate tags may exist in legitimate tags files. So we should ignore duplicates rather than erroring on them. This fixes parsing the /var/db/libc.tags file. $ grep -wc ^memcpy /var/db/libc.tags 2 Index: tags.c