Revision
70914
Author
raimue@macports.org
Date
2010-08-25 19:11:24 -0700 (Wed, 25 Aug 2010)

Log Message

shells/bash:
Fix 'BUG IN CLIENT OF LIBDISPATCH: Do not close random Unix descriptors', see #25693
Discussion on http://lists.gnu.org/archive/html/bug-bash/2010-08/msg00157.html

Modified Paths

Added Paths

Diff

Modified: trunk/dports/shells/bash/Portfile (70913 => 70914)


--- trunk/dports/shells/bash/Portfile	2010-08-26 01:48:12 UTC (rev 70913)
+++ trunk/dports/shells/bash/Portfile	2010-08-26 02:11:24 UTC (rev 70914)
@@ -6,6 +6,7 @@
 set bash_version    4.1
 set bash_patchlevel 7
 version             ${bash_version}.${bash_patchlevel}
+revision            1
 distname            ${name}-${bash_version}
 categories          shells
 maintainers         raimue
@@ -27,6 +28,8 @@
                     sha1    3bd1ec9c66f3689f6b3495bdaaf9077b2e5dc150 \
                     rmd160  554c7ecb4a63da431768caed1f958c06b8fa7207
 
+patchfiles          patch-close-fds.diff
+
 # Generate patchfiles
 for {set i 1} {$i <= $bash_patchlevel} {incr i} {
     patchfiles-append \

Added: trunk/dports/shells/bash/files/patch-close-fds.diff (0 => 70914)


--- trunk/dports/shells/bash/files/patch-close-fds.diff	                        (rev 0)
+++ trunk/dports/shells/bash/files/patch-close-fds.diff	2010-08-26 02:11:24 UTC (rev 70914)
@@ -0,0 +1,11 @@
+--- shell.c.orig	2010-08-26 04:03:02.000000000 +0200
++++ shell.c	2010-08-26 04:04:15.000000000 +0200
+@@ -537,7 +537,7 @@
+   if (login_shell && interactive_shell)
+     {
+       for (i = 3; i < 20; i++)
+-	close (i);
++	SET_CLOSE_ON_EXEC (i);
+     }
+ #endif /* CLOSE_FDS_AT_LOGIN */
+