]> git.ipfire.org Git - thirdparty/lxc.git/commit
Allow configuration file values to be quoted
authorStewart Brodie <stewart@metahusky.net>
Tue, 10 May 2016 12:57:00 +0000 (13:57 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:27:54 +0000 (18:27 -0500)
commit8bde403107e397ba7885d56ecdde485a76ab27dd
tree4d95fcba40be27eb24cb764ed0d69a0c5eedf9f4
parentc8a82316051212cdcf609ee75f2b8b2d77d598e8
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