Hi, > See > https://github.com/yontalcar/util-linux/commit/ > e9ca294aeeec9b32a979024a5f9c23e73325f2b0 > for patch.
thanks for the fix. I can confirm, that it works and is more elegant than the version I came up with (appended only for the record). So from my point of view this bug can be closed as soon as the new version hits the Debian archive. Kind regards Patrick
--- util-linux-2.31.1.orig/libblkid/src/partitions/dos.c +++ util-linux-2.31.1/libblkid/src/partitions/dos.c @@ -311,8 +311,13 @@ static int probe_dos_pt(blkid_probe pr, size_t n; int rc; - if (!dos_partition_get_size(p) || is_extended(p)) + if (!dos_partition_get_size(p) || is_extended(p)) { + /* Neutralize increment of i for empty partitions, as p + * contains all partitions, whereas ls contains only the + * non-empty ones. */ + i--; continue; + } for (n = 0; n < ARRAY_SIZE(dos_nested); n++) { if (dos_nested[n].type != p->sys_ind)
signature.asc
Description: This is a digitally signed message part.