From 097f40249c664cfc76794894440e27496ab82a76 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 23 Oct 2008 17:42:45 +0200 Subject: Make use of a large buffer for smbclient put command --- source3/client/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/client/client.c b/source3/client/client.c index 26badc4051c..39f8f90bbae 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1652,6 +1652,9 @@ static int do_put(const char *rname, const char *lname, bool reput) d_printf("ERROR: Not enough memory!\n"); return 1; } + + x_setvbuf(f, NULL, X_IOFBF, maxwrite); + while (!x_feof(f)) { int n = maxwrite; int ret; -- cgit