The attached patch should apply cleanly to the Debian urandom.

My apologies for attaching the wrong patch previously.  I picked
up the Ubuntu patch instead of the Debian patch.

>From 8d1f17feef351aa397d17bd4515f2d304be73393 Mon Sep 17 00:00:00 2001
From: John Denker <j...@av8n.com>
Date: Sat, 11 Sep 2010 11:21:19 -0700
Subject: [PATCH] Do not "rm -f $SAVEDFILE" because that is a Bad Idea when $SAVEDFILE is a symlink. Overwriting the file is quite sufficient.

---
 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

Reply via email to