pkgsrc/time/sunbird/patches/patch-af
ghen b549fe1eca http://www.mozilla.org/projects/calendar/releases/sunbird0.3.html
What's New in Mozilla Sunbird 0.3

Mozilla Sunbird 0.3 is the latest release of our standalone calendar
application. We recommend that all users upgrade to this latest version.

* New storage architecture handles calendars with hundreds or thousands of
  events more responsively.
* More intuitive interface shows you more of what you need, and less of what
  you don't.
* Redesigned preferences allow you to easily customize Sunbird for your needs.
* Add-ons support allows you to extend Sunbird's functionality with extensions,
  themes, and language packs from addons.mozilla.org.
* New Windows installer makes it easier than ever for Windows users to install
  Sunbird.
* Better printing gives you more ways to print your calendars. Mac users can
  now print as well!
* 24-hour views show you your entire day, not just a few hours.
* Reliable alarms ensure you are notified about events or tasks.
* Improved localization support means Sunbird can easily install, enable, and
  disable language packs.
* Vastly improved reliability makes it much more difficult to lose data.
* Many performance improvements

Release Date: October 11, 2006
2006-10-12 13:42:34 +00:00

35 lines
1.1 KiB
Text

$NetBSD: patch-af,v 1.3 2006/10/12 13:42:34 ghen Exp $
--- security/nss/lib/freebl/unix_rand.c.orig 2006-04-04 01:01:51.000000000 +0000
+++ security/nss/lib/freebl/unix_rand.c
@@ -35,6 +35,7 @@
* ***** END LICENSE BLOCK ***** */
#include <stdio.h>
+#include <fcntl.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
@@ -183,7 +183,8 @@ static SECStatus RNG_kstat(PRUint32* fed
#endif
#if defined(SCO) || defined(UNIXWARE) || defined(BSDI) || defined(FREEBSD) \
- || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD)
+ || defined(NETBSD) || defined(NTO) || defined(DARWIN) || defined(OPENBSD) \
+ || defined(DRAGONFLY)
#include <sys/times.h>
#define getdtablesize() sysconf(_SC_OPEN_MAX)
@@ -694,7 +696,11 @@ safe_popen(char *cmd)
/* 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));