summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-03-08 17:08:14 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2009-03-08 17:08:14 +0000
commite8c50d21537cd67ddb03e24e50ed7cfb00e705d9 (patch)
tree966da78ec11e51b522e42bc1e7215cc8a1f6c4bf
parent6472ae1c65eb970926401870aa4008b4074dd0ba (diff)
downloadrdiff-backup-e8c50d21537cd67ddb03e24e50ed7cfb00e705d9.tar.gz
Handle EACCES as well as EPERM
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@1036 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG3
-rw-r--r--rdiff-backup/rdiff_backup/backup.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 0944c56..66eac84 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,9 @@
New in v1.3.3 (????/??/??)
---------------------------
+Fix situation where destination file cannot be opened because of an access
+error. Thanks to Dean Cording for the bug report. (Andrew Ferguson)
+
Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix.
diff --git a/rdiff-backup/rdiff_backup/backup.py b/rdiff-backup/rdiff_backup/backup.py
index 39ec4c2..0ed7b03 100644
--- a/rdiff-backup/rdiff_backup/backup.py
+++ b/rdiff-backup/rdiff_backup/backup.py
@@ -219,7 +219,7 @@ class DestinationStruct:
try:
return Rdiff.get_signature(dest_rp)
except IOError, e:
- if (e.errno == errno.EPERM):
+ if (e.errno == errno.EPERM or e.errno == errno.EACCES):
try:
# Try chmod'ing anyway -- This can work on NFS and AFS
# depending on the setup. We keep the if() statement