From aa7757c4af4bede40323efde122d0c9e017dc1a0 Mon Sep 17 00:00:00 2001 From: Eugene Syromiatnikov Date: Tue, 1 Oct 2024 11:16:25 +0200 Subject: [PATCH] weak-modules: fix incorrect dispatch on symvers file extension * weak-modules (validate_weak_links): Switch on "$symvers_name" and not "$symvers". * kmod.spec (Release): Bump to 9. (%changelog): Add a record. Resolves: RHEL-61133 Signed-off-by: Eugene Syromiatnikov --- kmod.spec | 6 +++++- weak-modules | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kmod.spec b/kmod.spec index 6bbbaf5..f468292 100644 --- a/kmod.spec +++ b/kmod.spec @@ -16,7 +16,7 @@ Name: kmod Version: 31 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Linux kernel module management utilities # https://docs.fedoraproject.org/en-US/legal/license-field/#_no_effective_license_analysis @@ -196,6 +196,10 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf %{_libdir}/libkmod.so %changelog +* Tue Oct 01 2024 Eugene Syromiatnikov - 31-9 +- weak-modules: fix incorrect symvers file extension dispatch +- Resolves: RHEL-61133 + * Thu Aug 15 2024 Eugene Syromiatnikov - 31-8 - Fix issues discovered by static analysis - Resolves: RHEL-44931 diff --git a/weak-modules b/weak-modules index 76523a7..4af904b 100644 --- a/weak-modules +++ b/weak-modules @@ -768,7 +768,7 @@ validate_weak_links() { [[ -n "$symvers_path" ]] || return cat_prog="cat" - case "$symvers" in + case "$symvers_path" in *.gz) cat_prog="zcat" ;; *.xz) cat_prog="xzcat" ;; esac