Fix fold exit status for nonexistent files

Co-authored-by: Sohum Mendon <sohum.mendon@proton.me>
Co-authored-by: Lukáš Zaoral <lzaoral@redhat.com>
Resolves: RHEL-46722
This commit is contained in:
Lukáš Zaoral 2024-07-15 10:59:49 +02:00
parent 3431cc604f
commit e0409bee09
No known key found for this signature in database
GPG Key ID: 39157506DD67752D
2 changed files with 5 additions and 2 deletions

View File

@ -2182,7 +2182,7 @@ index 941ad11..cf1e747 100644
+ if (istream == NULL)
+ {
+ error (0, errno, "%s", filename);
+ return 1;
+ return false;
+ }
+
+ /* Define how ISTREAM is being folded. */

View File

@ -1,7 +1,7 @@
Summary: A set of basic GNU tools commonly used in shell scripts
Name: coreutils
Version: 9.5
Release: 1%{?dist}
Release: 2%{?dist}
# some used parts of gnulib are under various variants of LGPL
License: GPL-3.0-or-later AND GFDL-1.3-no-invariants-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later
Url: https://www.gnu.org/software/coreutils/
@ -265,6 +265,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%license COPYING
%changelog
* Mon Jul 15 2024 Lukáš Zaoral <lzaoral@redhat.com> - 9.5-2
- fix fold exit code for non-existent files (RHEL-46722)
* Thu Jul 04 2024 Lukáš Zaoral <lzaoral@redhat.com> - 9.5-1
- rebase to latest upstream version
- sync i18n patch with SUSE (Kudos to Berny Völker!)