Make use of a large buffer for smbclient put command
authorVolker Lendecke <vl@samba.org>
Thu, 23 Oct 2008 15:42:45 +0000 (17:42 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 23 Oct 2008 15:46:00 +0000 (17:46 +0200)
source3/client/client.c

index 26badc4051c406f5ff1d74280ed71084635956ce..39f8f90bbae06ab0505f7781f03c8ae88eeb8b94 100644 (file)
@@ -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;