Blame SOURCES/0017-fix-issue-with-logical-names-being-truncated-dev-sda.patch

121cca
From 4348e283f8a0bdd40b97c5d0b6e12354576b3113 Mon Sep 17 00:00:00 2001
121cca
From: Lyonel Vincent <lyonel@ezix.org>
121cca
Date: Mon, 25 May 2020 09:31:05 +0200
121cca
Subject: [PATCH 17/65] =?UTF-8?q?fix=20issue=20with=20logical=20names=20be?=
121cca
 =?UTF-8?q?ing=20truncated=20(`/dev/sda`=20=E2=86=92=20`sda`)?=
121cca
MIME-Version: 1.0
121cca
Content-Type: text/plain; charset=UTF-8
121cca
Content-Transfer-Encoding: 8bit
121cca
121cca
---
121cca
 src/core/hw.cc | 2 +-
121cca
 1 file changed, 1 insertion(+), 1 deletion(-)
121cca
121cca
diff --git a/src/core/hw.cc b/src/core/hw.cc
121cca
index f7da370..aca424c 100644
121cca
--- a/src/core/hw.cc
121cca
+++ b/src/core/hw.cc
121cca
@@ -1083,7 +1083,7 @@ void hwNode::setLogicalName(const string & name)
121cca
       This->logicalnames.push_back("/dev/" + n);
121cca
     }
121cca
     else
121cca
-      This->logicalnames.push_back(basename(n.c_str()));
121cca
+      This->logicalnames.push_back((n[0]=='/')?n:basename(n.c_str()));
121cca
 
121cca
     if(This->dev == "")
121cca
       This->dev = get_devid(n);
121cca
-- 
121cca
2.33.1
121cca