]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: convert GPT attributes to host endianess
authorKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2014 14:09:02 +0000 (15:09 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2014 14:09:02 +0000 (15:09 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/gpt.c

index 14a255af6a5d5d2a84b4f3386ea15adc3a332a3f..65a0f43765be0df2d81a859189c315365f538368 100644 (file)
@@ -386,7 +386,7 @@ static int probe_gpt_pt(blkid_probe pr,
                swap_efi_guid(&guid);
                blkid_partition_set_type_uuid(par, (const unsigned char *) &guid);
 
-               blkid_partition_set_flags(par, e->attributes);
+               blkid_partition_set_flags(par, le64_to_cpu(e->attributes));
        }
 
        return 0;