6a15ee56b6
Since many changes from previous release, please refer http://www.ruby-lang.org/en/news/2010/08/16/ruby-1-8-7-p302-is-released/. Note: Since all security updates are already in previous package, This update dosen't include any securify fix.
16 lines
471 B
Text
16 lines
471 B
Text
$NetBSD: patch-ew,v 1.1 2010/09/10 03:29:01 taca Exp $
|
|
|
|
* r26583: don't use O_NOFOLLOW because /dev/urandom is a symlink in OpenSolaris.
|
|
|
|
--- random.c.orig 2009-01-17 03:18:21.000000000 +0000
|
|
+++ random.c
|
|
@@ -280,9 +280,6 @@ random_seed()
|
|
#ifdef O_NOCTTY
|
|
|O_NOCTTY
|
|
#endif
|
|
-#ifdef O_NOFOLLOW
|
|
- |O_NOFOLLOW
|
|
-#endif
|
|
)) >= 0) {
|
|
if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
|
|
read(fd, seed, seed_len);
|