From: Andrew Tridgell Date: Fri, 20 Nov 2009 00:33:43 +0000 (+1100) Subject: s4-ldb: make ldb tools line buffered X-Git-Tag: tdb-1.2.0~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79a43fb74313d9ae88d72709e46ab385906af136;p=thirdparty%2Fsamba.git s4-ldb: make ldb tools line buffered this prevents output being buffered when redirected to a file. Useful for larger ldb command line operations --- 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");