From: Timo Sirainen Date: Thu, 13 Jun 2019 12:53:40 +0000 (+0300) Subject: acl: Use the last line from global ACL file even if it has no LF X-Git-Tag: 2.3.9~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f1d0ed535def235e4bd44343899ea2a4eef7d7f;p=thirdparty%2Fdovecot%2Fcore.git acl: Use the last line from global ACL file even if it has no LF Not all text editors add LF to the last line. --- diff --git a/src/plugins/acl/acl-global-file.c b/src/plugins/acl/acl-global-file.c index 4d4b1a6003..930be92f81 100644 --- a/src/plugins/acl/acl-global-file.c +++ b/src/plugins/acl/acl-global-file.c @@ -130,6 +130,7 @@ static int acl_global_file_read(struct acl_global_file *file) i_array_init(&ctx.parse_rights, 32); input = i_stream_create_file(file->path, (size_t)-1); + i_stream_set_return_partial_line(input, TRUE); while ((line = i_stream_read_next_line(input)) != NULL) { linenum++; if (line[0] == '\0' || line[0] == '#')