Commit f930c689 authored by owsla's avatar owsla

Avoid setting permissions to 000 because they're out of sync.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@822 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent be810e52
New in v1.1.12 (????/??/??)
---------------------------
Avoid setting permissions to 000 because they're out of sync. (Andrew Ferguson)
listxattr() can also throw EPERM error if not supported. (Andrew Ferguson)
Do something sensible if we get an IOError while trying to appropriately
......
......@@ -1167,6 +1167,9 @@ class RPath(RORPath):
if self.hasfullperms(): oldperms = None
else:
oldperms = self.getperms()
if not oldperms: # self.data['perms'] is probably out of sync
self.setdata()
oldperms = self.getperms()
self.chmod(0700)
fd = os.open(self.path, os.O_RDWR)
if oldperms is not None: self.chmod(oldperms)
......
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