[PATCH 5/5] 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 ac1c06e..08a9fe8 100755
--- a/urandom
+++ b/urandom
@@ -58,7 +58,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.7.0.4


--------------060904010401070005080803--





More information about the Pkg-sysvinit-devel mailing list