Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In "ignoring unsafe symlink" messages, show only the file-list path.
[rsync/rsync.git]
/
generator.c
diff --git
a/generator.c
b/generator.c
index
e7c1ef7
..
bec5c17
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-1355,10
+1355,12
@@
static void recv_generator(char *fname, struct file_struct *file, int ndx,
if (safe_symlinks && unsafe_symlink(sl, fname)) {
if (INFO_GTE(NAME, 1)) {
if (solo_file)
if (safe_symlinks && unsafe_symlink(sl, fname)) {
if (INFO_GTE(NAME, 1)) {
if (solo_file)
+ /* fname contains the destination path, but we
+ * want to report the source path. */
fname = f_name(file, NULL);
rprintf(FINFO,
fname = f_name(file, NULL);
rprintf(FINFO,
- "ignoring unsafe symlink
%s
-> \"%s\"\n",
- f
ull_fname(fname)
, sl);
+ "ignoring unsafe symlink
\"%s\"
-> \"%s\"\n",
+ f
name
, sl);
}
return;
}
}
return;
}