2005-09-22 16:14:04 +02:00
|
|
|
$NetBSD: patch-af,v 1.3 2005/09/22 14:14:04 jlam Exp $
|
Initial import of firefox-0.8, provided by Kouichirou Hiratsuka
in PR pkg/24603.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems. It is
small, fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2004-02-29 18:44:31 +01:00
|
|
|
|
2005-09-22 16:14:04 +02:00
|
|
|
--- security/nss/lib/freebl/unix_rand.c.orig 2003-05-30 23:31:19.000000000 +0000
|
|
|
|
+++ security/nss/lib/freebl/unix_rand.c
|
Initial import of firefox-0.8, provided by Kouichirou Hiratsuka
in PR pkg/24603.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems. It is
small, fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2004-02-29 18:44:31 +01:00
|
|
|
@@ -32,6 +32,7 @@
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
+#include <fcntl.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <unistd.h>
|
2005-09-22 16:14:04 +02:00
|
|
|
@@ -691,7 +692,11 @@ safe_popen(char *cmd)
|
Initial import of firefox-0.8, provided by Kouichirou Hiratsuka
in PR pkg/24603.
Mozilla Firefox is a free, open-source and cross-platform web browser
for Windows, Linux, MacOS X and many other operating systems. It is
small, fast and easy to use, and offers many advantages over other web
browsers, such as tabbed browsing and the ability to block pop-up
windows.
Firefox also offers excellent bookmark and history management, and it
can be extended by developers using industry standards such as XML,
CSS, JavaScript, C++, etc. Many extensions are available.
2004-02-29 18:44:31 +01:00
|
|
|
/* 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);
|
|
|
|
+ }
|
|
|
|
for (fd = getdtablesize(); --fd > 2; close(fd))
|
|
|
|
;
|
|
|
|
|