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:42:56 -0800 |
commit | e6f3a33c5e932dc82d487b55a3b12ed7aa5a90f5 (patch) | |
tree | 92a28244b0e38936f66de1b7a58513697eebffa5 /backup.c | |
parent | ce66f41791ab9e3c684a2089da28f23943d720b8 (diff) | |
download | android_external_rsync-e6f3a33c5e932dc82d487b55a3b12ed7aa5a90f5.tar.gz android_external_rsync-e6f3a33c5e932dc82d487b55a3b12ed7aa5a90f5.tar.bz2 android_external_rsync-e6f3a33c5e932dc82d487b55a3b12ed7aa5a90f5.zip |
Make the backup code call unsafe_symlink() correctly.
Diffstat (limited to 'backup.c')
-rw-r--r-- | backup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -284,7 +284,7 @@ int make_backup(const char *fname, BOOL prefer_rename) #ifdef SUPPORT_LINKS if (!ret && 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 (INFO_GTE(SYMSAFE, 1)) { rprintf(FINFO, "ignoring unsafe symlink %s -> %s\n", full_fname(buf), sl); |