chiark / gitweb /
conf-parser: accept trailing backslash at the end of the file (#8941)
authorFilipe Brandenburger <filbranden@google.com>
Thu, 10 May 2018 01:10:07 +0000 (18:10 -0700)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit0fdf8b0882bdce409ae3cbaf9517ad3ee06811e3
treeba41430a1e1a0c35e28a859462cba795bc81ee41
parent7c630b45afffa7aa066cdd9b87cc4e7b32cdccd8
conf-parser: accept trailing backslash at the end of the file (#8941)

This makes it behave the same whether there is a blank line or not at
the end of the file.  This is also consistent with the behavior of the
shell on a shell script that ends on a trailing backslash at the last
line.

Added tests to test_config_parse(), which only pass if the corresponding
change to config_parse() is included.
src/shared/conf-parser.c
src/test/test-conf-parser.c