summaryrefslogtreecommitdiff
path: root/backup.c
diff options
context:
space:
mode:
authorMatt McCutchen <matt@mattmccutchen.net>2010-03-17 00:53:42 -0400
committerWayne Davison <wayned@samba.org>2010-04-24 09:51:54 -0700
commit7a3ce973c370322251a5f402b80a02457efa682d (patch)
treedb6a0ac79fad51f83e0b8fea3ab98f2805ef6697 /backup.c
parentbe8234cd5991b395ed2d2a20b9e40bbcd021a70d (diff)
downloadrsync-7a3ce973c370322251a5f402b80a02457efa682d.tar.gz
In "ignoring unsafe symlink" messages, show only the file-list path.
Rsync was showing the full destination path, which was confusing because nothing is created at that path and was especially bogus in combination with the source name of a solo file. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506830
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backup.c b/backup.c
index 937f1be2..0ef4d9ec 100644
--- a/backup.c
+++ b/backup.c
@@ -276,8 +276,8 @@ int make_backup(const char *fname, BOOL prefer_rename)
const char *sl = F_SYMLINK(file);
if (safe_symlinks && unsafe_symlink(sl, fname)) {
if (INFO_GTE(SYMSAFE, 1)) {
- rprintf(FINFO, "ignoring unsafe symlink %s -> %s\n",
- full_fname(buf), sl);
+ rprintf(FINFO, "not backing up unsafe symlink \"%s\" -> \"%s\"\n",
+ fname, sl);
}
ret = 2;
} else {