Networker: if remote tells us to send more than our send limit, say we will only...
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 6 Apr 2012 15:39:54 +0000 (17:39 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 6 Apr 2012 15:39:54 +0000 (17:39 +0200)
citadel/file_ops.c

index 8491948925a970546bb146e3a6040a62fba8964d..460e2a85b462df566385f4211d44f983d8b6d52e 100644 (file)
@@ -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);