From 547b28ab26c514db7b1ffbe9e632039bb1d0be35572878aab4b7f61c279fa2ed Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 12 Oct 2011 09:30:22 +0000 Subject: [PATCH] - add fdisk-dont-shorten-long-path-to-disk.patch (bnc#722959) OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=96 --- fdisk-dont-shorten-long-path-to-disk.patch | 32 ++++++++++++++++++++++ util-linux.changes | 5 ++++ util-linux.spec | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 fdisk-dont-shorten-long-path-to-disk.patch 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-*