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:
3472009
)
get null termination right in logging
author
Andrew Tridgell
<tridge@samba.org>
Fri, 30 Oct 1998 02:43:10 +0000
(
02:43
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 30 Oct 1998 02:43:10 +0000
(
02:43
+0000)
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
d1da461
..
e06617a
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-106,9
+106,6
@@
void log_open(void)
FILE *f=NULL;
extern int am_daemon;
/* recursion can happen with certain fatal conditions */
- static int depth;
-
- if (depth) return;
va_start(ap, format);
len = vslprintf(buf, sizeof(buf)-1, format, ap);
@@
-126,9
+123,12
@@
void log_open(void)
}
if (am_daemon) {
+ static int depth;
int priority = LOG_INFO;
if (fd == FERROR) priority = LOG_WARNING;
+ if (depth) return;
+
depth++;
log_open();