diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-23 17:42:45 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-23 17:46:00 +0200 |
commit | 097f40249c664cfc76794894440e27496ab82a76 (patch) | |
tree | 827ecf517791bc9a216669a12fcc02f1a40da8b4 /source3 | |
parent | 3f0406f609899e88f15f90688c0e49beadc72568 (diff) | |
download | samba-097f40249c664cfc76794894440e27496ab82a76.tar.gz samba-097f40249c664cfc76794894440e27496ab82a76.tar.bz2 samba-097f40249c664cfc76794894440e27496ab82a76.zip |
Make use of a large buffer for smbclient put command
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 3 |
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; |