From f483df3fe031c14cb645b091eb3a28caf93b5b49 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 7 Oct 2025 05:23:00 +0000 Subject: [PATCH] import UBI file-5.33-27.el8_10 --- SOURCES/file-5.34-bogus-magic.patch | 25 +++++++++++++++++++++++++ SPECS/file.spec | 9 ++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 SOURCES/file-5.34-bogus-magic.patch diff --git a/SOURCES/file-5.34-bogus-magic.patch b/SOURCES/file-5.34-bogus-magic.patch new file mode 100644 index 0000000..5d3da38 --- /dev/null +++ b/SOURCES/file-5.34-bogus-magic.patch @@ -0,0 +1,25 @@ +From 4fb6a59df80d4974f8230bfce36e38e6de7d574f Mon Sep 17 00:00:00 2001 +From: Christos Zoulas +Date: Thu, 24 May 2018 18:54:40 +0000 +Subject: [PATCH] fix bogus magic + +--- + magic/Magdir/dbpf | 8 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/magic/Magdir/dbpf b/magic/Magdir/dbpf +index 65cab61edf..8545720dae 100644 +--- a/magic/Magdir/dbpf ++++ b/magic/Magdir/dbpf +@@ -9,9 +9,7 @@ + >4 ulelong x \b, version: %u. + >>8 ulelong x \b%u + >>>36 ulelong x \b, files: %u ++>>24 ledate !0 \b, created: %s ++>>28 ledate !0 \b, modified: %s + !:ext dbpf/package/dat/sc4 + !:mime application/x-maxis-dbpf +-4 ulelong 1 +->8 ulelong !1 +->>24 ledate !0 \b, created: %s +->>>28 ledate !0 \b, modified: %s diff --git a/SPECS/file.spec b/SPECS/file.spec index 3eb7468..a3f285e 100644 --- a/SPECS/file.spec +++ b/SPECS/file.spec @@ -15,7 +15,7 @@ Summary: A utility for determining file types Name: file Version: 5.33 -Release: 26%{?dist} +Release: 27%{?dist} License: BSD Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -110,6 +110,9 @@ Patch31: file-5.33-thermocam-magic.patch # Upstream commit c8deb32eab1089d1841482fb2e91833f114b6712 (#13737) Patch32: file-5.41-python-magic-threads.patch +# upstream commit: https://github.com/file/file/commit/4fb6a59df80d4974f8230bfce36e38e6de7d574f +Patch33: file-5.34-bogus-magic.patch + URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} BuildRequires: zlib-devel @@ -281,6 +284,10 @@ cd %{py3dir} %endif %changelog +* Sat Mar 29 2025 Vincent Mihalkovic - 5.33-27 +- Fix incorrect magic pattern for databases + Resolves: RHEL-84532 + * Thu Oct 12 2023 Vincent Mihalkovic - 5.33-26 - Fix segfault in python3-file-magic concurrent method calls (#13737)