summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-02-01 09:23:59 +0000
committerWayne Davison <wayned@samba.org>2005-02-01 09:23:59 +0000
commitc32edbe02eaf8ae9ed1bf6d766ab4f4c34881217 (patch)
tree16ff3f048333cdde4e3aae8a724a47902c2943a2 /log.c
parentf3c3ed44e6c69570be81d5a968265e5f1c27ffc3 (diff)
downloadrsync-c32edbe02eaf8ae9ed1bf6d766ab4f4c34881217.tar.gz
rsync-c32edbe02eaf8ae9ed1bf6d766ab4f4c34881217.tar.bz2
rsync-c32edbe02eaf8ae9ed1bf6d766ab4f4c34881217.zip
Make sure the %f expansion handles the new dir.root properly.
Diffstat (limited to 'log.c')
-rw-r--r--log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/log.c b/log.c
index a25d8b8c..95fd96c0 100644
--- a/log.c
+++ b/log.c
@@ -375,8 +375,8 @@ static void log_formatted(enum logcode code,
case 'o': n = op; break;
case 'f':
pathjoin(buf2, sizeof buf2,
- file->dir.root ? file->dir.root : "",
- f_name(file));
+ am_sender && file->dir.root ? file->dir.root : "",
+ f_name(file));
clean_fname(buf2, 0);
n = buf2;
if (*n == '/') n++;