From 88e3d03eb835250e8cfbc46a4dc99f2d90fd9c49 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Mar 2014 15:09:02 +0100 Subject: [PATCH] libblkid: convert GPT attributes to host endianess Signed-off-by: Karel Zak --- libblkid/src/partitions/gpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c index 14a255af6a..65a0f43765 100644 --- a/libblkid/src/partitions/gpt.c +++ b/libblkid/src/partitions/gpt.c @@ -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; -- 2.47.3