3
0
forked from pool/util-linux

- 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
This commit is contained in:
Petr Uzel 2011-10-12 09:30:22 +00:00 committed by Git OBS Bridge
parent cfed2efb65
commit 547b28ab26
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,32 @@
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;

View File

@ -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

View File

@ -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-*