Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1309d90
)
don't interpret %h and %a when using --log-format locally
author
Andrew Tridgell
<tridge@samba.org>
Mon, 16 Nov 1998 23:50:28 +0000
(23:50 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 16 Nov 1998 23:50:28 +0000
(23:50 +0000)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
82a88cd
..
86da03a
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-186,6
+186,7
@@
static void log_formatted(int fd,
int l;
extern struct stats stats;
extern int am_sender;
+ extern int am_daemon;
int64 b;
strlcpy(buf, format, sizeof(buf));
@@
-196,8
+197,8
@@
static void log_formatted(int fd,
s = p + 1;
switch (p[1]) {
- case 'h': n = client_name(0); break;
- case 'a': n = client_addr(0); break;
+ case 'h':
if (am_daemon)
n = client_name(0); break;
+ case 'a':
if (am_daemon)
n = client_addr(0); break;
case 'l':
slprintf(buf2,sizeof(buf2),"%.0f",
(double)file->length);