diff --git a/fdisk-dont-shorten-long-path-to-disk.patch b/fdisk-dont-shorten-long-path-to-disk.patch new file mode 100644 index 0000000..d31015c --- /dev/null +++ b/fdisk-dont-shorten-long-path-to-disk.patch @@ -0,0 +1,32 @@ +From 8176a344041c7a2b7bf6f05353bf9414c9d3b254 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Wed, 12 Oct 2011 10:15:58 +0200 +Subject: [PATCH] fdisk: don't shorten long path to disk device + +Reported-by: Petr Uzel +Signed-off-by: Karel Zak +Signed-off-by: Petr Uzel +--- + 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; + diff --git a/util-linux.changes b/util-linux.changes index e8953e1..fa8b20a 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 12 09:26:40 UTC 2011 - puzel@suse.com + +- add fdisk-dont-shorten-long-path-to-disk.patch (bnc#722959) + ------------------------------------------------------------------- Tue Oct 4 11:32:11 UTC 2011 - uli@suse.com diff --git a/util-linux.spec b/util-linux.spec index 4309d4c..162c228 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -89,6 +89,7 @@ Patch2: util-linux-2.17.1-mount_losetup_crypto.patch Patch3: util-linux-sfdisk-manpage-fix.patch Patch4: util-linux-lib-sysfs-deinit.patch Patch5: util-linux-2.20-libmount-deps.patch +Patch6: fdisk-dont-shorten-long-path-to-disk.patch ## ## adjtimex @@ -193,6 +194,7 @@ Files to develop applications using the libmount library. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 # cd adjtimex-*