Commit 3bf76047 3bf7604700d714f19863ca00c757baa1ade016b9 by Sergey Poznyakoff

imap4d: bugfix

* NEWS: Version 2.99.91
* configure.ac: Likewise.
* imap4d/imap4d.h (io_getline): Change return value
* imap4d/io.c (io_getline): Abort if a read error occurs.
1 parent 79cbad0d
GNU mailutils NEWS -- history of user-visible changes. 2011-03-30
GNU mailutils NEWS -- history of user-visible changes. 2011-06-08
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
See the end of file for copying conditions.
......@@ -6,7 +6,7 @@ See the end of file for copying conditions.
Please send mailutils bug reports to <bug-mailutils@gnu.org>.
Version 2.99.90 (Git)
Version 2.99.91 (Git)
This version is highly experimental. It features a rewrite from
scratch of the stream subsystem and other vital parts of the
......
......@@ -17,7 +17,7 @@ dnl You should have received a copy of the GNU General Public License along
dnl with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ(2.63)
AC_INIT([GNU Mailutils], [2.99.90], [bug-mailutils@gnu.org], [mailutils])
AC_INIT([GNU Mailutils], [2.99.91], [bug-mailutils@gnu.org], [mailutils])
AC_CONFIG_SRCDIR([libmailutils/mailbox/mailbox.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([gnits 1.11 dist-bzip2 dist-xz std-options silent-rules])
......
......@@ -219,7 +219,7 @@ extern int io_stream_completion_response (mu_stream_t str,
int rc,
const char *format, ...)
MU_PRINTFLIKE(4,5);
int io_getline (char **pbuf, size_t *psize, size_t *pnbytes);
void io_getline (char **pbuf, size_t *psize, size_t *pnbytes);
void io_setio (int, int);
void io_flush (void);
int io_wait_input (int);
......
......@@ -305,7 +305,7 @@ util_is_master ()
return iostream == NULL;
}
int
void
io_getline (char **pbuf, size_t *psize, size_t *pnbytes)
{
size_t len;
......@@ -323,7 +323,11 @@ io_getline (char **pbuf, size_t *psize, size_t *pnbytes)
if (pnbytes)
*pnbytes = len;
}
return rc;
else
{
mu_error (_("read error: %s"), mu_strerror (rc));
imap4d_bye (ERR_NO_IFILE);
}
}
......