]> git.ipfire.org Git - thirdparty/lxc.git/commit
Allow configuration file values to be quoted 1015/head
authorStewart Brodie <stewart@metahusky.net>
Tue, 10 May 2016 12:57:00 +0000 (13:57 +0100)
committerStewart Brodie <stewart@metahusky.net>
Tue, 10 May 2016 12:57:00 +0000 (13:57 +0100)
commitbd878deec369f6fb119855f6ac738b754c978b99
treefed5d3f3d492f613f94f978fcb13ddec3ecc5549
parent2bec98546e2bfe1c826f9e8fe6e79fbfbb6e4d9b
Allow configuration file values to be quoted

If the value starts and ends with matching quote characters, those
characters are stripped automatically.   Quote characters are the
single quote (') or double quote (").  The quote removal is done after
the whitespace trimming.

This is needed particularly in order that lxc.environment values may
have trailing spaces.  However, the quote removal is done for all values
in the parse_line function, as it has non-const access to the value.

Signed-off-by: Stewart Brodie <stewart@metahusky.net>
src/lxc/confile.c