diff options
author | Wayne Davison <wayned@samba.org> | 2009-03-03 08:42:56 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-03-03 08:57:39 -0800 |
commit | f2522e3f53e371735d226ad792041d39e6bd8f55 (patch) | |
tree | 46cb9c0594fafd7aba9b685cc4eca401293709fe | |
parent | 8fba76d5c323c3c4a4340f39b8000e6f4b22d0eb (diff) | |
download | rsync-f2522e3f53e371735d226ad792041d39e6bd8f55.tar.gz rsync-f2522e3f53e371735d226ad792041d39e6bd8f55.tar.bz2 rsync-f2522e3f53e371735d226ad792041d39e6bd8f55.zip |
Make the backup code call unsafe_symlink() correctly.
-rw-r--r-- | backup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |