It was found through shellcheck.

Siteshwar Vashisht (1):
  config.sub: fix a duplicated case pattern

 config.sub | 1 -
 1 file changed, 1 deletion(-)

-- 
2.48.1
From b4ea2490179db84c1c1a3942d36347eef07aad97 Mon Sep 17 00:00:00 2001
From: Siteshwar Vashisht <svashi...@redhat.com>
Date: Thu, 8 May 2025 15:14:55 +0200
Subject: [PATCH 1/1] config.sub: fix a duplicated case pattern

... reported by shellcheck.

Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/usr/lib/rpm/redhat/config.sub:245:8: warning[SC2221]: This pattern always overrides a later one on line 247.

Related: https://openscanhub.fedoraproject.org/task/52550/log/redhat-rpm-config-343-4.fc43/scan-results.html#def4

Signed-off-by: Siteshwar Vashisht <svashi...@redhat.com>
---
 config.sub | 1 -
 1 file changed, 1 deletion(-)

diff --git a/config.sub b/config.sub
index 4aaae46..0d23f75 100755
--- a/config.sub
+++ b/config.sub
@@ -242,7 +242,6 @@ case $1 in
 					| rombug \
 					| semi \
 					| sequent* \
-					| siemens \
 					| sgi* \
 					| siemens \
 					| sim \
-- 
2.48.1

Reply via email to