Commit f8a0fd0f f8a0fd0fdb20fdb607343d932f19e650dfd8f1d2 by Sergey Poznyakoff

Bugfix

* libmailutils/stream/stream.c (mu_stream_ioctl): Don't flush read
buffer.
1 parent 3d7a66ae
...@@ -1160,7 +1160,7 @@ mu_stream_ioctl (mu_stream_t stream, int family, int opcode, void *ptr) ...@@ -1160,7 +1160,7 @@ mu_stream_ioctl (mu_stream_t stream, int family, int opcode, void *ptr)
1160 { 1160 {
1161 int rc; 1161 int rc;
1162 _bootstrap_event (stream); 1162 _bootstrap_event (stream);
1163 if ((rc = _stream_flush_buffer (stream, _MU_STR_FLUSH_ALL))) 1163 if ((rc = _stream_flush_buffer (stream, _MU_STR_FLUSH_ALL|_MU_STR_FLUSH_KEEP)))
1164 return rc; 1164 return rc;
1165 if (stream->ctl == NULL) 1165 if (stream->ctl == NULL)
1166 return ENOSYS; 1166 return ENOSYS;
......