- (djm) Only test -S potential EGD sockets if they exist and are readable.
diff --git a/configure.in b/configure.in
index fcb8228..b52448f 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.235 2001/02/12 07:29:45 mouring Exp $
+# $Id: configure.in,v 1.236 2001/02/13 01:11:17 djm Exp $
AC_INIT(ssh.c)
@@ -1092,7 +1092,7 @@
AC_MSG_CHECKING(for PRNGD/EGD socket)
# Insert other locations here
for egdsock in /var/run/egd-pool /etc/entropy /tmp/entropy ; do
- if $TEST_MINUS_S_SH -c "test -S $egdsock -o -p $egdsock" ; then
+ if test -r $egdsock && $TEST_MINUS_S_SH -c "test -S $egdsock -o -p $egdsock" ; then
EGD_SOCKET="$egdsock"
AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET")
break;