summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-03-03 08:42:56 -0800
committerWayne Davison <wayned@samba.org>2009-03-03 08:57:39 -0800
commitf2522e3f53e371735d226ad792041d39e6bd8f55 (patch)
tree46cb9c0594fafd7aba9b685cc4eca401293709fe
parent8fba76d5c323c3c4a4340f39b8000e6f4b22d0eb (diff)
downloadrsync-f2522e3f53e371735d226ad792041d39e6bd8f55.tar.gz
rsync-f2522e3f53e371735d226ad792041d39e6bd8f55.tar.bz2
rsync-f2522e3f53e371735d226ad792041d39e6bd8f55.zip
Make the backup code call unsafe_symlink() correctly.
-rw-r--r--backup.c2
1 files changed, 1 insertions, 1 deletions
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);