git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccb8f57
)
FERROR messages also need to leave leading newlines unmangled.
author
Wayne Davison
<wayned@samba.org>
Tue, 24 Jan 2006 01:07:19 +0000
(
01:07
+0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 24 Jan 2006 01:07:19 +0000
(
01:07
+0000)
log.c
patch
|
blob
|
history
diff --git
a/log.c
b/log.c
index a1df72d06277f28b4394ecc47a1fbf2a357b7b0a..65952b5c5bb0e761a97b47d672460e29aa8e350e 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-265,10
+265,11
@@
void rwrite(enum logcode code, char *buf, int len)
case FERROR:
log_got_error = 1;
f = stderr;
-
break
;
+
goto pre_scan
;
case FINFO:
f = am_server ? stderr : stdout;
- while (len && (*buf == '\n' || *buf == '\t')) {
+ pre_scan:
+ while (len > 1 && (*buf == '\n' || *buf == '\t')) {
fputc(*buf, f);
buf++;
len--;