NetBSD Problem Report #11469
Received: (qmail 13809 invoked from network); 12 Nov 2000 01:55:43 -0000
Message-Id: <200011120155.eAC1tB001298@grog.cjones.org>
Date: Sat, 11 Nov 2000 18:55:11 -0700 (MST)
From: chris@cjones.org
Reply-To: chris@cjones.org
To: gnats-bugs@gnats.netbsd.org
Subject: random(4) patch for cyrus-sasl
X-Send-Pr-Version: 3.95
>Number: 11469
>Category: pkg
>Synopsis: random(4) patch for cyrus-sasl
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 12 01:56:00 +0000 2000
>Closed-Date: Wed Jan 31 23:15:04 +0000 2001
>Last-Modified: Wed Jan 31 23:15:04 +0000 2001
>Originator: Chris Jones
>Release: <NetBSD-current source date>pkgsrc from 26 Oct 2000
>Organization:
>Environment:
System: NetBSD grog.cjones.org 1.5_BETA NetBSD 1.5_BETA (GROG) #0: Mon Oct 30 23:03:31 MST 2000 chris@grog.cjones.org:/usr/src/sys/arch/i386/compile/GROG i386
>Description:
The cyrus-sasl uses a random number generator for its
challenge-response authentication. It uses /dev/random for these
random numbers. On a quiescent or low-activity system, imapd will
block indefinitely waiting for entropy, which leaves the user
wondering why they can't type in their password yet. These two
patches make it use /dev/urandom instead.
Tested on this machine, but serving only two IMAP users.
>How-To-Repeat:
See above.
>Fix:
--- config.h.in.orig Fri Nov 10 07:57:15 2000
+++ config.h.in Fri Nov 10 08:09:39 2000
@@ -186,7 +186,7 @@
/* location of the random number generator */
#ifndef DEV_RANDOM
-#define DEV_RANDOM "/dev/random"
+#define DEV_RANDOM "/dev/urandom"
#endif
/* Make Solaris happy... */
--- acconfig.h.orig Fri Nov 10 07:57:09 2000
+++ acconfig.h Fri Nov 10 08:09:33 2000
@@ -127,7 +127,7 @@
/* location of the random number generator */
#ifndef DEV_RANDOM
-#define DEV_RANDOM "/dev/random"
+#define DEV_RANDOM "/dev/urandom"
#endif
/* Make Solaris happy... */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jlam
State-Changed-When: Wed Jan 31 15:13:57 PST 2001
State-Changed-Why:
A fix was committed to look for /dev/urandom, then /dev/random, during
compilation. Thanks for the PR!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.