Commit d483516c authored by owsla's avatar owsla

Handle EACCES as well as EPERM


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@1036 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b279829e
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.
......
......@@ -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
......
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