2013-09-26 17:14:40 +02:00

17 lines
487 B
Plaintext

$NetBSD: patch-ew,v 1.2 2011/12/28 16:40:07 taca Exp $
* r26583: don't use O_NOFOLLOW because /dev/urandom is a symlink in OpenSolaris.
--- random.c.orig 2011-12-28 12:47:15.000000000 +0000
+++ random.c
@@ -276,9 +276,6 @@ fill_random_seed(ptr)
#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, DEFAULT_SEED_LEN);