From: Wilfried Goesgens Date: Fri, 6 Apr 2012 15:39:54 +0000 (+0200) Subject: Networker: if remote tells us to send more than our send limit, say we will only... X-Git-Tag: v8.11~107 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=a54b6cfde340606e5b8c41de3dbe08f15b2f1394;p=citadel.git Networker: if remote tells us to send more than our send limit, say we will only send the limit in this chunk instead of failing. --- diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 849194892..460e2a85b 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -689,9 +689,7 @@ void cmd_writ(char *cmdbuf) } if (bytes > 100000) { - cprintf("%d You may not write more than 100000 bytes.\n", - ERROR + TOO_BIG); - return; + bytes = 100000; } cprintf("%d %d\n", SEND_BINARY, bytes);