From a4e2ade5c12e0686da445bdfe92b05c3e567ccd7 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 13 Apr 2012 12:06:33 -0400 Subject: [PATCH] Revert "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." This reverts commit a54b6cfde340606e5b8c41de3dbe08f15b2f1394. --- citadel/file_ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 460e2a85b..849194892 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -689,7 +689,9 @@ void cmd_writ(char *cmdbuf) } if (bytes > 100000) { - bytes = 100000; + cprintf("%d You may not write more than 100000 bytes.\n", + ERROR + TOO_BIG); + return; } cprintf("%d %d\n", SEND_BINARY, bytes); -- 2.39.2