* [PATCH 4/5] fdisk: fix segfault when printing gpt raw data
@ 2012-10-07 14:34 Davidlohr Bueso
2012-10-18 10:18 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2012-10-07 14:34 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
fdisks/fdisk.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 612bf87..a3ac087 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -1390,7 +1390,8 @@ static void print_raw(struct fdisk_context *cxt)
int i;
printf(_("Device: %s\n"), cxt->dev_path);
- if (disklabel == SUN_LABEL || disklabel == SGI_LABEL)
+ if (disklabel == SUN_LABEL || disklabel == SGI_LABEL ||
+ disklabel == GPT_LABEL)
print_buffer(cxt, cxt->firstsector);
else for (i = 3; i < partitions; i++)
print_buffer(cxt, ptes[i].sectorbuffer);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-18 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07 14:34 [PATCH 4/5] fdisk: fix segfault when printing gpt raw data Davidlohr Bueso
2012-10-18 10:18 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).