summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-23 17:42:45 +0200
committerVolker Lendecke <vl@samba.org>2008-10-23 17:46:00 +0200
commit097f40249c664cfc76794894440e27496ab82a76 (patch)
tree827ecf517791bc9a216669a12fcc02f1a40da8b4 /source3/client
parent3f0406f609899e88f15f90688c0e49beadc72568 (diff)
downloadsamba-097f40249c664cfc76794894440e27496ab82a76.tar.gz
samba-097f40249c664cfc76794894440e27496ab82a76.tar.bz2
samba-097f40249c664cfc76794894440e27496ab82a76.zip
Make use of a large buffer for smbclient put command
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 26badc4051..39f8f90bba 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;