Commit 1214667a authored by owsla's avatar owsla

Change high-bit permissions test to check files and directories. (Patch from

Marc Horowitz)


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@872 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 7054087f
New in v1.1.16 (????/??/??)
---------------------------
Change high-bit permissions test to check both files and directories.
Improves rdiff-backup's support for AFS and closes Debian bug #450409.
(Patch from Marc Horowitz)
rdiff-backup-statistics now supports quoted repositories. Closes Savannah
bug #21813. (Andrew Ferguson)
......
......@@ -439,14 +439,19 @@ class FSAbilities:
def set_high_perms_readwrite(self, dir_rp):
"""Test for writing high-bit permissions like suid"""
tmp_rp = dir_rp.append("high_perms")
tmp_rp.touch()
tmpf_rp = dir_rp.append("high_perms_file")
tmpf_rp.touch()
tmpd_rp = dir_rp.append("high_perms_dir")
tmpd_rp.touch()
try:
tmp_rp.chmod(07000)
tmp_rp.chmod(07777)
tmpf_rp.chmod(07000)
tmpf_rp.chmod(07777)
tmpd_rp.chmod(07000)
tmpd_rp.chmod(07777)
except (OSError, IOError): self.high_perms = 0
else: self.high_perms = 1
tmp_rp.delete()
tmpf_rp.delete()
tmpd_rp.delete()
def set_symlink_perms(self, dir_rp):
"""Test if symlink permissions are affected by umask"""
......
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