public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Andreas Thienemann <ixs@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/dash] epel10: - Added patch from upstream git to not close stdout on err. This improves
Date: Fri, 13 Nov 2026 21:15:20 GMT	[thread overview]
Message-ID: <179460452010.1.14396702096938514474.rpms-dash-5f234b135f1e@fedoraproject.org> (raw)

        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

                 reply	other threads:[~2026-11-13 21:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179460452010.1.14396702096938514474.rpms-dash-5f234b135f1e@fedoraproject.org \
    --to=ixs@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox