]> err.no Git - util-linux/commitdiff
libblkid: don't gather PART_ENTRY_* values for binary interface
authorKarel Zak <kzak@redhat.com>
Fri, 23 Apr 2010 09:20:08 +0000 (11:20 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 23 Apr 2010 09:20:08 +0000 (11:20 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/partitions/partitions.c

index 9d8f3db7ab98d0de34338ea236fbdd97cb2045d3..259284d84026671b45d705580122944bc36e29d9 100644 (file)
@@ -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;
        }