[parted-devel] [PATCH 1/3] hurd: Fix partition paths

Samuel Thibault samuel.thibault at ens-lyon.org
Thu Nov 26 20:59:39 GMT 2020


From: Colin Watson <cjwatson at ubuntu.com>

We have always had an 's' to separate drive number from partition
number.
---
 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 321b70a..f475c4c 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;
 }
 
-- 
2.28.0




More information about the parted-devel mailing list