From 781aa7b364b2c479bd1f01284dee57229e51fc4c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 23 Apr 2010 11:20:08 +0200 Subject: [PATCH] libblkid: don't gather PART_ENTRY_* values for binary interface Signed-off-by: Karel Zak --- shlibs/blkid/src/partitions/partitions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shlibs/blkid/src/partitions/partitions.c b/shlibs/blkid/src/partitions/partitions.c index 9d8f3db7..259284d8 100644 --- a/shlibs/blkid/src/partitions/partitions.c +++ b/shlibs/blkid/src/partitions/partitions.c @@ -627,7 +627,9 @@ details_only: /* * Gather PART_ENTRY_* values if the current device is a partition. */ - if ((blkid_partitions_get_flags(pr) & BLKID_PARTS_ENTRY_DETAILS)) { + if (!chn->binary && + (blkid_partitions_get_flags(pr) & BLKID_PARTS_ENTRY_DETAILS)) { + if (!blkid_partitions_probe_partition(pr)) rc = 0; } -- 2.39.5