@Psusi,
Could you please look at this patch and see if you think it is valid? It seems to fix the issue for me.
I'm not sure if the style is correct. I chose to put the helper function inside partx rather than in partitions.c where other helper functions live (just for reference, I'll attach a patch that does that too, but that requires exporting a new function in libblkid).
Attaching a seemingly working patch.
@Psusi,
Could you please look at this patch and see if you think it is valid? It seems to fix the issue for me.
I'm not sure if the style is correct. I chose to put the helper function inside partx rather than in partitions.c where other helper functions live (just for reference, I'll attach a patch that does that too, but that requires exporting a new function in libblkid).