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:
parent
3431cc604f
commit
e0409bee09
@ -2182,7 +2182,7 @@ index 941ad11..cf1e747 100644
|
|||||||
+ if (istream == NULL)
|
+ if (istream == NULL)
|
||||||
+ {
|
+ {
|
||||||
+ error (0, errno, "%s", filename);
|
+ error (0, errno, "%s", filename);
|
||||||
+ return 1;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ /* Define how ISTREAM is being folded. */
|
+ /* Define how ISTREAM is being folded. */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A set of basic GNU tools commonly used in shell scripts
|
Summary: A set of basic GNU tools commonly used in shell scripts
|
||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 9.5
|
Version: 9.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# some used parts of gnulib are under various variants of LGPL
|
# 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
|
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/
|
Url: https://www.gnu.org/software/coreutils/
|
||||||
@ -265,6 +265,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jul 04 2024 Lukáš Zaoral <lzaoral@redhat.com> - 9.5-1
|
||||||
- rebase to latest upstream version
|
- rebase to latest upstream version
|
||||||
- sync i18n patch with SUSE (Kudos to Berny Völker!)
|
- sync i18n patch with SUSE (Kudos to Berny Völker!)
|
||||||
|
Loading…
Reference in New Issue
Block a user