[dovecot-cvs] dovecot/src/lib file-dotlock.c,1.21,1.22
cras at dovecot.org
cras at dovecot.org
Thu Jan 6 21:08:51 EET 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv32492/lib
Modified Files:
file-dotlock.c
Log Message:
Use random_fill_weak() when creating dotlock file names.
Index: file-dotlock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/file-dotlock.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- file-dotlock.c 7 Dec 2004 00:41:38 -0000 1.21
+++ file-dotlock.c 6 Jan 2005 19:08:49 -0000 1.22
@@ -199,7 +199,7 @@
for (;;) {
do {
- random_fill(randbuf, sizeof(randbuf));
+ random_fill_weak(randbuf, sizeof(randbuf));
str_truncate(path, len);
str_append(path,
binary_to_hex(randbuf, sizeof(randbuf)));
More information about the dovecot-cvs
mailing list