Public
Authored by らりお

rrsync.sh

UNMAINTAINED, OUTDATED, NOT SAFE, DO NOT USE

rrsync replacement without perl. Useful for limited environment like CoreOS.

Edited
3.76 KB
  • This script at 2017-06-27 is outdated and vulnerable.

    Please note that this script is NOT safe without further modification. rsync 3 introduced the --protect-args (-s) parameter which would no longer send the path as part of the rsync command line arguments. With that parameter set this script would accept any path.

    The original script explicitly disallows the -s parameter. See https://git.samba.org/?p=rsync.git;a=commitdiff;h=2e8259bb0bc5ffe64df9075ef8f1e8050caf951c.

    It also ignores any of the long parameters.

    https://gist.github.com/lo48576/d120d139e091f2338d35e1de85f9315f#gistcomment-2559286

    I'll mark the script as outdated and not safe, until I fix the problem someday.

    Edited by らりお
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