public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dash] epel10: - Added patch from upstream git to not close stdout on err. This improves
@ 2026-11-13 21:15 Andreas Thienemann
0 siblings, 0 replies; only message in thread
From: Andreas Thienemann @ 2026-11-13 21:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dash
Branch : epel10
Commit : 5f234b135f1e73dc578dea9a5a7d2192b5d7408c
Author : Andreas Thienemann <ixs@fedoraproject.org>
Date : 2009-05-23T11:28:14+00:00
Stats : +35/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/dash/c/5f234b135f1e73dc578dea9a5a7d2192b5d7408c?branch=epel10
Log:
- Added patch from upstream git to not close stdout on err. This improves
initramfs use of dash.
---
diff --git a/dash-do-not-close-stderr.patch b/dash-do-not-close-stderr.patch
new file mode 100644
index 0000000..c00f164
--- /dev/null
+++ b/dash-do-not-close-stderr.patch
@@ -0,0 +1,27 @@
+commit fcc4134a7b76d82d39dea635c41ec593a41d6d19
+Author: Herbert Xu <herbert@gondor.apana.org.au>
+Date: Sun Feb 22 19:29:48 2009 +0800
+
+ [JOBS] Do not close stderr when /dev/tty fails to open
+
+ As it stands if we fail to open /dev/tty we end up closing stderr
+ after saving it at a higher fd.
+
+ Thanks to David van Gorkom for reporting this.
+
+ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+
+diff --git a/src/jobs.c b/src/jobs.c
+index 69a84f7..b1ab7ab 100644
+--- a/src/jobs.c
++++ b/src/jobs.c
+@@ -195,6 +195,9 @@ setjobctl(int on)
+ while (!isatty(fd))
+ if (--fd < 0)
+ goto out;
++ fd = dup(fd);
++ if (fd < 0)
++ goto out;
+ }
+ fd = savefd(fd);
+ do { /* while we are in the background */
diff --git a/dash.spec b/dash.spec
index dacf473..d718c6b 100644
--- a/dash.spec
+++ b/dash.spec
@@ -1,12 +1,13 @@
Name: dash
Version: 0.5.5.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Small and fast POSIX-compliant shell
Group: System Environment/Shells
License: BSD
URL: http://gondor.apana.org.au/~herbert/dash/
Source0: http://gondor.apana.org.au/~herbert/dash/files/dash-%{version}.tar.gz
+Patch0: dash-do-not-close-stderr.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -16,6 +17,7 @@ significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
%prep
%setup -q
+%patch0 -p 1
%build
%configure
@@ -38,7 +40,11 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/man/man1/dash.1.gz
%changelog
-* Mon Apr 13 2009 Warren Togami <wtogami@redhat.com> - 0.5.5.1
+* Sat May 23 2009 Andreas Thienemann <andreas@bawue.net> - 0.5.5.1-2
+- Added patch from upstream git to not close stdout on err. This improves
+ initramfs use of dash.
+
+* Mon Apr 13 2009 Warren Togami <wtogami@redhat.com> - 0.5.5.1-1
- 0.5.5.1
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 21:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 21:15 [rpms/dash] epel10: - Added patch from upstream git to not close stdout on err. This improves Andreas Thienemann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox