Projects
home:Eustace:branches:Eulaceura:Factory
lsscsi
_service:obs_scm:0001-Fix-lsscsi-wwn-number-out...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Fix-lsscsi-wwn-number-output-error.patch of Package lsscsi
From c13c9d3a90aec4779a0cbe484913f24bce947ab1 Mon Sep 17 00:00:00 2001 From: Wenchao Hao <haowenchao@huawei.com> Date: Tue, 8 Jun 2021 16:26:04 +0800 Subject: [PATCH] Fix lsscsi wwn number output error The true wwn number is from the sixth byte of scsi-* Signed-off-by: Wenchao Hao <haowenchao@huawei.com> --- src/lsscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsscsi.c b/src/lsscsi.c index 6f6953f..2be3ab9 100644 --- a/src/lsscsi.c +++ b/src/lsscsi.c @@ -1515,7 +1515,7 @@ collect_disk_wwn_nodes(void) cur_ent = &cur_list->nodes[cur_list->count]; my_strcopy(cur_ent->wwn, "0x", 3); - my_strcopy(cur_ent->wwn + 2, dep->d_name + 5, + my_strcopy(cur_ent->wwn + 2, dep->d_name + 6, sizeof(cur_ent->wwn) - 2); my_strcopy(cur_ent->disk_bname, basename(symlink_path), sizeof(cur_ent->disk_bname)); -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2