summaryrefslogtreecommitdiff
path: root/rdiff-backup
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-03-04 18:26:00 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-03-04 18:26:00 +0000
commit6472ae1c65eb970926401870aa4008b4074dd0ba (patch)
tree1aa2c9b8f4105b4dd8c5d15277e39fe925879199 /rdiff-backup
parentb23e24e13ecf803ff85f852908264fec540bca4c (diff)
downloadrdiff-backup-6472ae1c65eb970926401870aa4008b4074dd0ba.tar.gz
Fix --compare-hash options on Windows.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1035 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup')
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/hash.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 28f41c5..0944c56 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,7 +1,7 @@
New in v1.3.3 (????/??/??)
---------------------------
-
+Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix.
New in v1.3.2 (2009/03/02)
diff --git a/rdiff-backup/rdiff_backup/hash.py b/rdiff-backup/rdiff_backup/hash.py
index 7758dc9..b438743 100644
--- a/rdiff-backup/rdiff_backup/hash.py
+++ b/rdiff-backup/rdiff_backup/hash.py
@@ -62,7 +62,7 @@ class Report:
def compute_sha1(rp, compressed = 0):
"""Return the hex sha1 hash of given rpath"""
assert rp.conn is Globals.local_connection # inefficient not to do locally
- digest = compute_sha1_fp(rp.open("r", compressed))
+ digest = compute_sha1_fp(rp.open("rb", compressed))
rp.set_sha1(digest)
return digest