0521d315a4
- remove libeditline dependency again as libeditline lives in /usr - update to version 0.5.7 - optimize dash -c "command" to avoid a fork - improve LINENO support - dotcmd should exit with zero when doing nothing - replace GPL noclobberopen code with the FreeBSD version - do not split the result of tilde expansion - use exit status 127 when the script to run does not exist - document optional open parenthesis for case patterns - use faccessat if available - added dash-0.5.7-do-not-close-stderr.patch in order to prevent stderr from being closed when /dev/tty fails to open (backported from upstream git) - added dash-remove-backslash-before-in-double-quotes-in-variable.patch which removes a backslash before } in double-quotes in variable as it prevents the closing brace from terminating the substitution (from FreeBSD/Debian) - Remove redundant tags/sections from specfile (cf. packaging guidelines) OBS-URL: https://build.opensuse.org/request/show/86994 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dash?expand=0&rev=8
14 lines
410 B
Diff
14 lines
410 B
Diff
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 */
|