X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Ffile_ops.c;h=2430bec35a421a0f79d9077402a0d5353bc84e7c;hb=04e4d6c8d566cc9ff12ff54844407e84bda9b58e;hp=1f94f23e931acb8eecff69f36e53e009197ae24d;hpb=ee36fc3e6d59c7f40015273196bb4452ae941d84;p=citadel.git diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 1f94f23e9..2430bec35 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -712,6 +712,8 @@ void cmd_writ(char *cmdbuf) int bytes; char buf[4096]; + unbuffer_output(); + bytes = extract_int(cmdbuf, 0); if (CC->upload_fp == NULL) { @@ -726,7 +728,6 @@ void cmd_writ(char *cmdbuf) } cprintf("%d %d\n", SEND_BINARY, bytes); - flush_output(); client_read(buf, bytes); fwrite(buf, bytes, 1, CC->upload_fp); }