Blame SOURCES/lsscsi-0.33-wwn-trunc.patch

e57a59
From c13c9d3a90aec4779a0cbe484913f24bce947ab1 Mon Sep 17 00:00:00 2001
e57a59
From: Wenchao Hao <haowenchao@huawei.com>
e57a59
Date: Tue, 8 Jun 2021 16:26:04 +0800
e57a59
Subject: [PATCH] Fix lsscsi wwn number output error
e57a59
e57a59
The true wwn number is from the sixth byte of scsi-*
e57a59
e57a59
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
e57a59
---
e57a59
 src/lsscsi.c | 2 +-
e57a59
 1 file changed, 1 insertion(+), 1 deletion(-)
e57a59
e57a59
diff --git a/src/lsscsi.c b/src/lsscsi.c
e57a59
index 6f6953f..2be3ab9 100644
e57a59
--- a/src/lsscsi.c
e57a59
+++ b/src/lsscsi.c
e57a59
@@ -1515,7 +1515,7 @@ collect_disk_wwn_nodes(void)
e57a59
 
e57a59
                 cur_ent = &cur_list->nodes[cur_list->count];
e57a59
                 my_strcopy(cur_ent->wwn, "0x", 3);
e57a59
-                my_strcopy(cur_ent->wwn + 2, dep->d_name + 5,
e57a59
+                my_strcopy(cur_ent->wwn + 2, dep->d_name + 6,
e57a59
                            sizeof(cur_ent->wwn) - 2);
e57a59
                 my_strcopy(cur_ent->disk_bname, basename(symlink_path),
e57a59
                            sizeof(cur_ent->disk_bname));