From 79a43fb74313d9ae88d72709e46ab385906af136 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 20 Nov 2009 11:33:43 +1100 Subject: [PATCH] s4-ldb: make ldb tools line buffered this prevents output being buffered when redirected to a file. Useful for larger ldb command line operations --- source4/lib/ldb/tools/cmdline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c index 8f610f77050..f0cd0a3a60c 100644 --- a/source4/lib/ldb/tools/cmdline.c +++ b/source4/lib/ldb/tools/cmdline.c @@ -99,6 +99,9 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, #endif + /* make the ldb utilities line buffered */ + setlinebuf(stdout); + ret = talloc_zero(ldb, struct ldb_cmdline); if (ret == NULL) { fprintf(stderr, "Out of memory!\n"); -- 2.34.1