From e6f3a33c5e932dc82d487b55a3b12ed7aa5a90f5 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 3 Mar 2009 08:42:56 -0800 Subject: [PATCH] Make the backup code call unsafe_symlink() correctly. --- backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.c b/backup.c index a81f947e..0da6b33a 100644 --- a/backup.c +++ b/backup.c @@ -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); -- 2.34.1