try hard to unset HOME and randfile
This commit is contained in:
@@ -83,9 +83,15 @@ done
|
|||||||
# RAND_file_name() when the enviroment is lacking those.
|
# RAND_file_name() when the enviroment is lacking those.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -e /dev/random -o -e /dev/urandom -o -e /dev/srandom -o -e /dev/arandom ] ; then
|
||||||
|
|
||||||
|
# try hard to unset HOME and RANDFILE
|
||||||
HOME=
|
HOME=
|
||||||
RANDFILE=
|
RANDFILE=
|
||||||
|
|
||||||
|
unset HOME
|
||||||
|
unset RANDFILE
|
||||||
|
|
||||||
${rand} --method=unix --file=unix 2>error
|
${rand} --method=unix --file=unix 2>error
|
||||||
res=$?
|
res=$?
|
||||||
if test "X$res" != X0 ; then
|
if test "X$res" != X0 ; then
|
||||||
@@ -95,4 +101,6 @@ if test "X$res" != X0 ; then
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user