Skip to contentSkip to conversation

conga/luci/utils luci_cleanup

Cluster-devel [email protected] 1 participant 1 message Aug 3, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-08-03 18:33:54

Modified files:
luci/utils : luci_cleanup

Log message:
forgot to close /dev/urandom

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_cleanup.diff?cvsroot=cluster&r1=1.1&r2=1.2

luci/utils/luci_cleanup +1 -0
@@ -114,6 +114,7 @@
 	try:
 		rand = file('/dev/urandom', 'r')
 		passwd = rand.read(16)
+		rand.close()
 	except:
 		sys.stderr.write('Unable to read from /dev/urandom')
 		return -1