[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rsync
Subject:    Re: Rsync and mirroring - request for new feature
From:       Andrew Tridgell <tridge () samba ! anu ! edu ! au>
Date:       1998-07-17 10:50:12
[Download RAW message or body]

> 1. Absolute links should be rejected (or perhaps converted to relative
>    links with "/" moved to the root of the mirrored area)
> 
> 2. Relative links should be monitored for their depth and rejected
>    (with a warning) if they point to something outside the area.
> 
> How difficult would this be? It would be a very nice addition to rsync
> as a mirroring tool.

I've just committed a patch to CVS that adds a --safe-links option. It
causes absolute links to be ignored and relative links to be ignored
if they point outside the destination tree.

I'd appreciate it if a few other people could test it out. I think
I've covered all the cases but it is certainly something that is easy
to get wrong.

with -v rsync will print:

     ignoring unsafe symlink foo -> /etc/passwd

if it finds an unsafe symlink.

On another note, I'm probably going to be doing a new rsync release
this weekend. If I track down the "rsync hanging" bug before the
release then I'll call it 2.1.0 otherwise I'll call it 2.0.19. Phil
Hands is helping me track down the hanging bug (thanks Phil!). Phil
also bought be some pizza for dinner tonight (despite living at the
other end of the earth!) so I'm doubly grateful, and slightly overfed :)

      - Tridge

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic