forked from pool/util-linux
33 lines
920 B
Diff
33 lines
920 B
Diff
From 8176a344041c7a2b7bf6f05353bf9414c9d3b254 Mon Sep 17 00:00:00 2001
|
|
From: Karel Zak <kzak@redhat.com>
|
|
Date: Wed, 12 Oct 2011 10:15:58 +0200
|
|
Subject: [PATCH] fdisk: don't shorten long path to disk device
|
|
|
|
Reported-by: Petr Uzel <petr.uzel@suse.cz>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
|
|
---
|
|
fdisk/partname.c | 3 ++-
|
|
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
|
Index: util-linux-2.20/fdisk/partname.c
|
|
===================================================================
|
|
--- util-linux-2.20.orig/fdisk/partname.c
|
|
+++ util-linux-2.20/fdisk/partname.c
|
|
@@ -5,13 +5,14 @@
|
|
#include "blkdev.h"
|
|
#include "pathnames.h"
|
|
#include "common.h"
|
|
+#include "c.h"
|
|
|
|
/*
|
|
* return partition name - uses static storage unless buf is supplied
|
|
*/
|
|
char *
|
|
partname(char *dev, int pno, int lth) {
|
|
- static char bufp[80];
|
|
+ static char bufp[PATH_MAX];
|
|
char *p;
|
|
int w, wp;
|
|
|