From ed253beef005ec297125f03a60bd5bf9a5e8b6b6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Dec 2014 21:16:33 +0100 Subject: stream: always make stream dumping/capturing append to output file Partially fixes #1393 (but not really). --- stream/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream.c b/stream/stream.c index 1ec9d63488..de362a6ee1 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -464,7 +464,7 @@ void stream_set_capture_file(stream_t *s, const char *filename) s->capture_file = NULL; s->capture_filename = NULL; if (filename) { - s->capture_file = fopen(filename, "wb"); + s->capture_file = fopen(filename, "ab"); if (s->capture_file) { s->capture_filename = talloc_strdup(NULL, filename); if (s->buf_pos < s->buf_len) -- cgit v1.2.3