chiark / gitweb /
fileio.c: do not parse comments after non-whitespace chars
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 08:15:25 +0000 (10:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 09:29:00 +0000 (11:29 +0200)
commit98f59e59e0c31ffcb953d3a7dba0da5e6f2f55f7
tree236c8c85234c6d8063639b079dee26d585764552
parentbef89518003a37f0fbd2f53beaa6bb7d01efed45
fileio.c: do not parse comments after non-whitespace chars

systemd does not want to understand comments after the first
non-whitespace char occured.

key=foo #comment  will result into key == "foo #comment"
key="foo" #comment  will result into key == "foo#comment"
"key= #comment" will result into key == "#comment"
"key #comment" is an invalid line
src/shared/fileio.c
src/test/test-fileio.c