Commit 18f2a0c3 authored by dgaudet's avatar dgaudet

back out the symlink permission setting feature change -- leave it only

in 1.1.x.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@764 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 8002dc4e
New in v1.0.5 (????/??/??)
--------------------------
Set symlink permissions properly. (Patch from Andrew Ferguson.)
Fix a traceback due to an off-by-1 error in "--remove-older-than nB".
Fix a security violation when restoring from a remote repository.
......
......@@ -95,12 +95,7 @@ def copy(rpin, rpout, compress = 0):
if rpin.isreg(): copy_reg_file(rpin, rpout, compress)
elif rpin.isdir(): rpout.mkdir()
elif rpin.issym():
# some systems support permissions for symlinks, but
# only by setting at creation via the umask
os.umask(0777 - rpin.getperms())
rpout.symlink(rpin.readlink())
os.umask(077) # restore rdiff-backup standard umask
elif rpin.issym(): rpout.symlink(rpin.readlink())
elif rpin.ischardev():
major, minor = rpin.getdevnums()
rpout.makedev("c", major, minor)
......
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