rsync 2.3.2 with --copy-unsafe-links work badly
Martin Pool
mbp at samba.org
Sun Apr 7 22:58:02 EST 2002
Dave, can you explain to me what exactly unsafe_symlink is meant to
do? I can see broadly that it's meant to prevent symlinks pointing
out of "the directory being copied", but when not using path= and a
daemon it's not clear what directory that refers to.
Also, I don't understand this line:
> /* find out what our safety margin is */
> for (tok=strtok(src,"/"); tok; tok=strtok(NULL,"/")) {
> if (strcmp(tok,"..") == 0) {
> depth=0;
Why depth=0 rather than depth--?
Thanks,
--
Martin
More information about the rsync
mailing list