Commit a249eab8 authored by owsla's avatar owsla

Handle EACCES as well as EPERM


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1038 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6212c1fd
New in v1.2.8 (????/??/??) New in v1.2.8 (????/??/??)
--------------------------- ---------------------------
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. Fix --compare-hash options on Windows. Thanks to Serge Zub for the fix.
......
...@@ -211,7 +211,7 @@ class DestinationStruct: ...@@ -211,7 +211,7 @@ class DestinationStruct:
try: try:
return Rdiff.get_signature(dest_rp) return Rdiff.get_signature(dest_rp)
except IOError, e: except IOError, e:
if (e.errno == errno.EPERM): if (e.errno == errno.EPERM or e.errno == errno.EACCES):
try: try:
# Try chmod'ing anyway -- This can work on NFS and AFS # Try chmod'ing anyway -- This can work on NFS and AFS
# depending on the setup. We keep the if() statement # depending on the setup. We keep the if() statement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment