Commit 1ab062a2 authored by dgaudet's avatar dgaudet

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@794 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 30e63613
New in v1.1.10 (????/??/??)
---------------------------
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)
Fix --list-increments bug in set_must_escape_dos_devices.
(Marc Dyksterhouse)
......
......@@ -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)
......
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