diff options
author | dgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-02-03 17:32:27 +0000 |
---|---|---|
committer | dgaudet <dgaudet@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-02-03 17:32:27 +0000 |
commit | 31d8d70baea54f66fc6e05310a51c8cc020f7c53 (patch) | |
tree | 2b67be552c919605fc73daf511376c3635a093c3 /rdiff-backup/rdiff_backup/restore.py | |
parent | db967f13d2c096f9f6050ec5e3688e0460fe57c7 (diff) | |
download | rdiff-backup-31d8d70baea54f66fc6e05310a51c8cc020f7c53.tar.gz |
Fix restore from read-only bug -- rx perms on a repository directory are
enough, no need for write perms when restoring. (patch from Andrew Price)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@794 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/restore.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/restore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/restore.py b/rdiff-backup/rdiff_backup/restore.py index 7f8ae6d..2510405 100644 --- a/rdiff-backup/rdiff_backup/restore.py +++ b/rdiff-backup/rdiff_backup/restore.py @@ -708,7 +708,7 @@ class PermissionChanger: """Change permissions of directories between old_index and index""" for rp in self.get_new_rp_list(old_index, index): if ((rp.isreg() and not rp.readable()) or - (rp.isdir() and not rp.hasfullperms())): + (rp.isdir() and not (rp.executable() and rp.readable()))): old_perms = rp.getperms() self.open_index_list.insert(0, (rp.index, rp, old_perms)) if rp.isreg(): rp.chmod(0400 | old_perms) |