From: Wayne Davison Date: Tue, 3 Mar 2009 16:42:56 +0000 (-0800) Subject: Make the backup code call unsafe_symlink() correctly. X-Git-Tag: v3.0.6pre1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2522e3f53e371735d226ad792041d39e6bd8f55;p=thirdparty%2Frsync.git Make the backup code call unsafe_symlink() correctly. --- diff --git a/backup.c b/backup.c index c93ab49b..ecc40d52 100644 --- a/backup.c +++ b/backup.c @@ -295,7 +295,7 @@ static int keep_backup(const char *fname) #ifdef SUPPORT_LINKS if (!kept && preserve_links && S_ISLNK(file->mode)) { const char *sl = F_SYMLINK(file); - if (safe_symlinks && unsafe_symlink(sl, buf)) { + if (safe_symlinks && unsafe_symlink(sl, fname)) { if (verbose) { rprintf(FINFO, "ignoring unsafe symlink %s -> %s\n", full_fname(buf), sl);