summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-11-20 11:33:43 +1100
committerAndrew Tridgell <tridge@samba.org>2009-11-20 11:34:39 +1100
commit79a43fb74313d9ae88d72709e46ab385906af136 (patch)
treecefe2037a30fde99a043152f00b66e69a7d29243 /source4/lib/ldb
parent3b96d08b299e2fc20fa1c860fcc37fa1a02a72b5 (diff)
downloadsamba-79a43fb74313d9ae88d72709e46ab385906af136.tar.gz
samba-79a43fb74313d9ae88d72709e46ab385906af136.tar.bz2
samba-79a43fb74313d9ae88d72709e46ab385906af136.zip
s4-ldb: make ldb tools line buffered
this prevents output being buffered when redirected to a file. Useful for larger ldb command line operations
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/tools/cmdline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c
index 8f610f7705..f0cd0a3a60 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");