[PATCH] Do not "rm -f $SAVEDFILE" because that is a Bad Idea when $SAVEDFILE is a symlink. Overwriting the file is quite sufficient.
John Denker
jsd at av8n.com
Sat Sep 11 18:21:19 UTC 2010
---
urandom | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/urandom b/urandom
index 5e6121c..3046ac5 100755
--- a/urandom
+++ b/urandom
@@ -50,7 +50,6 @@ case "$1" in
then
cat "$SAVEDFILE" >/dev/urandom
fi
- rm -f $SAVEDFILE
# Write a new seed into $SAVEDFILE because re-using a seed
# compromises security. Each time we re-seed, we want the
# seed to be as different as possible.
--
1.5.6.5
--------------000407050603090506030000--
More information about the Pkg-sysvinit-devel
mailing list