[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/utils luci_cleanup



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe 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

--- conga/luci/utils/luci_cleanup	2006/08/03 18:33:04	1.1
+++ conga/luci/utils/luci_cleanup	2006/08/03 18:33:54	1.2
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]