Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9399:72a8063cfde0 HEAD
Allow config file line lengths to be unlimited.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 30 Sep 2009 10:43:12 -0400 |
parents | 436a44194e6a |
children | 1fb19e1c84f5 |
files | src/deliver/deliver.c src/lib-settings/settings.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/deliver/deliver.c Wed Sep 30 10:12:27 2009 -0400 +++ b/src/deliver/deliver.c Wed Sep 30 10:43:12 2009 -0400 @@ -344,7 +344,7 @@ if (fd < 0) i_fatal_status(EX_TEMPFAIL, "open(%s) failed: %m", path); - input = i_stream_create_fd(fd, 1024, TRUE); + input = i_stream_create_fd(fd, (size_t)-1, TRUE); i_stream_set_return_partial_line(input, TRUE); while ((line = i_stream_read_next_line(input)) != NULL) { /* @UNSAFE: line is modified */
--- a/src/lib-settings/settings.c Wed Sep 30 10:12:27 2009 -0400 +++ b/src/lib-settings/settings.c Wed Sep 30 10:43:12 2009 -0400 @@ -119,7 +119,7 @@ new_input = t_new(struct input_stack, 1); new_input->prev = *inputp; new_input->path = t_strdup(path); - new_input->input = i_stream_create_fd(fd, 2048, TRUE); + new_input->input = i_stream_create_fd(fd, (size_t)-1, TRUE); i_stream_set_return_partial_line(new_input->input, TRUE); *inputp = new_input; return 0; @@ -200,7 +200,7 @@ full_line = t_str_new(512); sections = 0; root_section = 0; errormsg = NULL; - input->input = i_stream_create_fd(fd, 2048, TRUE); + input->input = i_stream_create_fd(fd, (size_t)-1, TRUE); i_stream_set_return_partial_line(input->input, TRUE); prevfile: while ((line = i_stream_read_next_line(input->input)) != NULL) {