backend/common/fileutils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a4d23af586196547fa8d3b867f0aed7922503ca8
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Fri Oct 18 15:59:17 2013 +0200
1020910 - use sha1 to compare checksums
md5 will not work on a FIPS enabled Spacewalk.
diff --git a/backend/common/fileutils.py b/backend/common/fileutils.py
index f8fc12f..fb4cb8b 100644
--- a/backend/common/fileutils.py
+++ b/backend/common/fileutils.py
@@ -107,7 +107,7 @@ def rotateFile(filepath, depth=5, suffix='.', verbosity=0):
% os.path.dirname(pathNSuffix))
# is there anything to do? (existence, then size, then checksum)
- checksum_type = 'md5' # FIXME: this should be configuation option
+ checksum_type = 'sha1'
if os.path.exists(pathNSuffix1) and os.path.isfile(pathNSuffix1) \
and os.stat(filepath)[6] == os.stat(pathNSuffix1)[6] \
and getFileChecksum(checksum_type, filepath) == \
Show replies by date