summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/restore.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-09-13 22:26:09 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-09-13 22:26:09 +0000
commit52950040bde00e779c1be65f759f646c9bf7e91b (patch)
treefec6c7b4f09fc640d8b8b45201bb0b9c72bd9e38 /rdiff-backup/rdiff_backup/restore.py
parent9d2c911ef7763ac7f2123878c002a059f2826708 (diff)
downloadrdiff-backup-52950040bde00e779c1be65f759f646c9bf7e91b.tar.gz
Yet another change dealing with unreadable directories
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@431 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/restore.py')
-rw-r--r--rdiff-backup/rdiff_backup/restore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/restore.py b/rdiff-backup/rdiff_backup/restore.py
index aa6c6fe..7e88a61 100644
--- a/rdiff-backup/rdiff_backup/restore.py
+++ b/rdiff-backup/rdiff_backup/restore.py
@@ -582,7 +582,7 @@ class PatchITRB(rorpiter.ITRBranch):
assert diff_rorp.get_attached_filetype() == 'snapshot'
self.dir_replacement = TempFile.new(base_rp)
rpath.copy_with_attribs(diff_rorp, self.dir_replacement)
- if base_rp.isdir() and Globals.change_permissions: base_rp.chmod(0700)
+ if base_rp.isdir(): base_rp.chmod(0700)
def prepare_dir(self, diff_rorp, base_rp):
"""Prepare base_rp to turn into a directory"""
@@ -590,7 +590,7 @@ class PatchITRB(rorpiter.ITRBranch):
if not base_rp.isdir():
if base_rp.lstat(): base_rp.delete()
base_rp.mkdir()
- if Globals.change_permissions: base_rp.chmod(0700)
+ base_rp.chmod(0700)
def end_process(self):
"""Finish processing directory"""