Brian C. Lane wrote:
> On Sun, Apr 17, 2011 at 10:53:35PM +0200, Jim Meyering wrote:
>
>> /* Check for devfs-style /disc => /partN transformation
>> unconditionally; the system might be using udev with devfs rules,
>> and if not the test is harmless. */
>> if (5 < path_len && !strcmp (dev->path + path_len - 5, "/disc")) {
>> /* replace /disc with /path%d */
>
> Small typo in the comment, should read /part%d
Thanks. Fixed:
>From 9b15c9a574ad90df818a23ab6f02d57cdb421480 Mon Sep 17 00:00:00 2001
From: Brian C. Lane <[email protected]>
Date: Wed, 20 Apr 2011 13:04:20 +0200
Subject: [PATCH] linux: fix typo in comment: /path%d => /part%d
* libparted/arch/linux.c (_device_get_part_path): Fix typo in comment.
---
libparted/arch/linux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index fa51b73..c108f5a 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2216,7 +2216,7 @@ _device_get_part_path (PedDevice *dev, int num)
unconditionally; the system might be using udev with devfs rules,
and if not the test is harmless. */
if (5 < path_len && !strcmp (dev->path + path_len - 5, "/disc")) {
- /* replace /disc with /path%d */
+ /* replace /disc with /part%d */
result = zasprintf ("%.*s/part%d",
(int) (path_len - 5), dev->path, num);
} else {
--
1.7.5.rc2.295.g19c42
_______________________________________________
bug-parted mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-parted