From 0cde1cd04266e72449e62df2c895653179cc7caf Mon Sep 17 00:00:00 2001 From: owsla Date: Sun, 8 Mar 2009 17:21:59 +0000 Subject: Handle EACCES as well as EPERM git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r1-2@1038 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 3 +++ rdiff-backup/rdiff_backup/backup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 92ec3ba..ae6f475 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,9 @@ 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. diff --git a/rdiff-backup/rdiff_backup/backup.py b/rdiff-backup/rdiff_backup/backup.py index e152d8f..5dbd0a7 100644 --- a/rdiff-backup/rdiff_backup/backup.py +++ b/rdiff-backup/rdiff_backup/backup.py @@ -211,7 +211,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 -- cgit v1.2.1