800ce59e41
and change notes). Firefox 1.5.0.x will be maintained in www/firefox15*, as discussed on tech-pkg.
26 lines
848 B
Text
26 lines
848 B
Text
$NetBSD: patch-af,v 1.5 2007/05/12 13:53:07 ghen Exp $
|
|
|
|
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>
|
|
@@ -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);
|
|
- close(0);
|
|
+ fd = open("/dev/null", O_RDONLY);
|
|
+ if (fd != 0) {
|
|
+ dup2(fd, 0);
|
|
+ close(fd);
|
|
+ }
|
|
{
|
|
int ndesc = getdtablesize();
|
|
for (fd = PR_MIN(65536, ndesc); --fd > 2; close(fd));
|