Commit 0a6932ea authored by owsla's avatar owsla

Catch EACCES as well as EPERM


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@967 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 18cba59e
......@@ -1059,7 +1059,7 @@ class RPath(RORPath):
else:
try: self.conn.os.unlink(self.path)
except OSError, error:
if error.errno == errno.EPERM:
if error.errno in (errno.EPERM, errno.EACCES):
# On Windows, read-only files cannot be deleted.
# Remove the read-only attribute and try again.
self.chmod(0700)
......
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