From: Wayne Davison Date: Mon, 3 Jul 2006 22:35:00 +0000 (+0000) Subject: Obey the new "munge symlinks" dameon setting. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dcebf78fe0eec453a9e8fd4999536fd721d29eb4?hp=651c8510e8bdcdf8c01354120a63ddae203d2006 Obey the new "munge symlinks" dameon setting. --- diff --git a/flist.c b/flist.c index ad859bc4..4f67463e 100644 --- a/flist.c +++ b/flist.c @@ -655,6 +655,8 @@ static struct file_struct *receive_file_entry(struct file_list *flist, if (linkname_len) { file->u.link = bp; read_sbuf(f, bp, linkname_len - 1); + if (lp_munge_symlinks(module_id)) + sanitize_path(bp, bp, "", lastdir_depth, NULL); bp += linkname_len; } #endif