File dash-0.5.7-do-not-close-stderr.patch of Package dash

diff -urNp dash-0.5.7.orig/src/jobs.c dash-0.5.7/src/jobs.c
--- dash-0.5.7.orig/src/jobs.c	2011-03-15 08:45:32.000000000 +0100
+++ dash-0.5.7/src/jobs.c	2011-10-06 18:57:38.000000000 +0200
@@ -198,6 +198,9 @@ setjobctl(int on)
 			while (!isatty(fd))
 				if (--fd < 0)
 					goto out;
+			fd = dup(fd);
+			if (fd < 0)
+				goto out;
 		}
 		fd = savefd(fd, ofd);
 		do { /* while we are in the background */