diff does not show a unified diff when one of the file is empty

This commit is contained in:
Than Ngo 2025-03-27 15:15:37 +01:00
commit 1159f22114
4 changed files with 119 additions and 28 deletions

View file

@ -1,11 +1,13 @@
Summary: GNU collection of diff utilities
Name: diffutils
Version: 3.11
Release: 2%{?dist}
Release: 3%{?dist}
URL: https://www.gnu.org/software/diffutils/diffutils.html
Source: https://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
# upstream fixes
Patch10: diffutils-3.11-allocation-typo-leading-to-crashes.patch
Patch10: 0001-diff-don-t-treat-empty-files-as-a-different-file-typ.patch
Patch11: 0001-diff-fix-allocation-size-computation-that-could-caus.patch
License: GPL-3.0-or-later
Provides: bundled(gnulib)
BuildRequires: gcc
@ -55,6 +57,9 @@ make check
%{_infodir}/diffutils.info*
%changelog
* Thu Mar 27 2025 Than Ngo <than@redhat.com> - 3.11-3
- diff does not show a unified diff when one of the file is empty
* Thu Mar 27 2025 Than Ngo <than@redhat.com> - 3.11-2
- Backported upstream patch, Fixed allocation typo leading to crash