Package: parted / 3.2-7

hurd-partition-path.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 38ae72f19e9b209f7906db665226414d9d1542c0 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@ubuntu.com>
Date: Fri, 28 Mar 2014 17:09:53 +0000
Subject: Fix partition paths on GNU/Hurd

Patch-Name: hurd-partition-path.patch
---
 libparted/arch/gnu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libparted/arch/gnu.c b/libparted/arch/gnu.c
index a17a738..5a1c73e 100644
--- a/libparted/arch/gnu.c
+++ b/libparted/arch/gnu.c
@@ -845,7 +845,7 @@ gnu_partition_get_path (const PedPartition* part)
 	result = (char*) ped_malloc (result_len);
 	if (!result)
 		return NULL;
-	snprintf (result, result_len, "%s%d", dev_path, part->num);
+	snprintf (result, result_len, "%ss%d", dev_path, part->num);
 	return result;
 }