dovecot-1.2: Allow config file line lengths to be unlimited.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 30 17:43:18 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/72a8063cfde0
changeset: 9399:72a8063cfde0
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 30 10:43:12 2009 -0400
description:
Allow config file line lengths to be unlimited.
diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
src/deliver/deliver.c | 2 +-
src/lib-settings/settings.c | 4 ++--
diffs (33 lines):
diff -r 436a44194e6a -r 72a8063cfde0 src/deliver/deliver.c
--- 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 @@ static void config_file_init(const char
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 */
diff -r 436a44194e6a -r 72a8063cfde0 src/lib-settings/settings.c
--- 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 @@ static int settings_add_include(const ch
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 @@ settings_read_real(const char *path, con
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) {
More information about the dovecot-cvs
mailing list