Skip to content

Commit

Permalink
Make the backup code call unsafe_symlink() correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Mar 3, 2009
1 parent ce66f41 commit e6f3a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e6f3a33

Please sign in to comment.