diff --git a/file-5.48-qemu-compression-formats.patch b/file-5.48-qemu-compression-formats.patch new file mode 100644 index 0000000..218e7a5 --- /dev/null +++ b/file-5.48-qemu-compression-formats.patch @@ -0,0 +1,24 @@ +From: Christos Zoulas +Date: Wed, 15 Apr 2026 16:56:41 +0000 +Subject: PR/752: vmihalko: Add qemu compression formats + +# Upstream-commit: 0d435dc73d94743a0e83bf6fb6843564d09d2a7d +# https://github.com/file/file/commit/0d435dc73d94743a0e83bf6fb6843564d09d2a7d + +diff --git a/magic/Magdir/virtual b/magic/Magdir/virtual +index e6a30ef1..776eed75 100644 +--- a/magic/Magdir/virtual ++++ b/magic/Magdir/virtual +@@ -198,7 +198,11 @@ + >0x10 lelong x \b, version %u + >0x14 lelong x \b, XML length %u + >0x18 lelong 1 \b, running +->0x1c lelong 1 \b, compressed ++>0x1c lelong 0 \b, RAW (no compression) ++>0x1c lelong 1 \b, gzip compressed ++>0x1c lelong 2 \b, bzip2 compressed ++>0x1c lelong 3 \b, xz compressed ++>0x1c lelong 4 \b, lzop compressed + + 0 string LibvirtQemudPart Libvirt QEMU partial Suspend Image + # From: Alex Beregszaszi diff --git a/file.spec b/file.spec index 8a39339..7b06e08 100644 --- a/file.spec +++ b/file.spec @@ -15,7 +15,7 @@ Summary: Utility for determining file types Name: file Version: 5.39 -Release: 18%{?dist} +Release: 19%{?dist} License: BSD Source0: http://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -67,6 +67,9 @@ Patch19: file-5.43-python.patch # Upstream commit fa66260f9a52dba5c3a64e7d69485d24af4cd369 # https://github.com/file/file/commit/fa66260f9a52dba5c3a64e7d69485d24af4cd369 Patch20: file-5.48-magic-getpath-race.patch +# Upstream commit 0d435dc73d94743a0e83bf6fb6843564d09d2a7d +# https://github.com/file/file/commit/0d435dc73d94743a0e83bf6fb6843564d09d2a7d +Patch21: file-5.48-qemu-compression-formats.patch URL: https://www.darwinsys.com/file/ Requires: file-libs%{?_isa} = %{version}-%{release} @@ -246,6 +249,10 @@ cd %{py3dir} %endif %changelog +* Wed Apr 29 2026 Vincent Mihalkovic - 5.39-19 +- Add QEMU suspend image compression format reporting + Resolves: RHEL-68294 + * Mon Apr 27 2026 Vincent Mihalkovic - 5.39-18 - Fix race condition in magic_getpath() for thread safety Resolves: RHEL-93189