diff options
Diffstat (limited to 'www/firefox/patches/patch-af')
-rw-r--r-- | www/firefox/patches/patch-af | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/www/firefox/patches/patch-af b/www/firefox/patches/patch-af index d6a45cac0f9..2f2c7f9f9b7 100644 --- a/www/firefox/patches/patch-af +++ b/www/firefox/patches/patch-af @@ -1,16 +1,17 @@ -$NetBSD: patch-af,v 1.3 2005/09/22 14:14:04 jlam Exp $ +$NetBSD: patch-af,v 1.4 2005/12/10 13:47:22 taya Exp $ ---- security/nss/lib/freebl/unix_rand.c.orig 2003-05-30 23:31:19.000000000 +0000 -+++ security/nss/lib/freebl/unix_rand.c -@@ -32,6 +32,7 @@ - */ +diff -ruN ../Orig/mozilla/security/nss/lib/freebl/unix_rand.c ./security/nss/lib/freebl/unix_rand.c +--- ../Orig/mozilla/security/nss/lib/freebl/unix_rand.c 2005-10-11 08:22:50.000000000 +0900 ++++ ./security/nss/lib/freebl/unix_rand.c 2005-12-04 19:04:32.000000000 +0900 +@@ -35,6 +35,7 @@ + * ***** END LICENSE BLOCK ***** */ #include <stdio.h> +#include <fcntl.h> #include <string.h> #include <signal.h> #include <unistd.h> -@@ -691,7 +692,11 @@ safe_popen(char *cmd) +@@ -694,7 +695,11 @@ /* dup write-side of pipe to stderr and stdout */ if (p[1] != 1) dup2(p[1], 1); if (p[1] != 2) dup2(p[1], 2); @@ -20,6 +21,6 @@ $NetBSD: patch-af,v 1.3 2005/09/22 14:14:04 jlam Exp $ + dup2(fd, 0); + close(fd); + } - for (fd = getdtablesize(); --fd > 2; close(fd)) - ; - + { + int ndesc = getdtablesize(); + for (fd = PR_MIN(65536, ndesc); --fd > 2; close(fd)); |