git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f0406f
)
Make use of a large buffer for smbclient put command
author
Volker Lendecke
<vl@samba.org>
Thu, 23 Oct 2008 15:42:45 +0000
(17:42 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 23 Oct 2008 15:46:00 +0000
(17:46 +0200)
source3/client/client.c
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index 26badc4051c406f5ff1d74280ed71084635956ce..39f8f90bbae06ab0505f7781f03c8ae88eeb8b94 100644
(file)
--- 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;