[lxc-devel] [lxc/lxc] bd878d: Allow configuration file values to be quoted

GitHub noreply at github.com
Tue May 10 19:16:58 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: bd878deec369f6fb119855f6ac738b754c978b99
      https://github.com/lxc/lxc/commit/bd878deec369f6fb119855f6ac738b754c978b99
  Author: Stewart Brodie <stewart at metahusky.net>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  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 at metahusky.net>


  Commit: 9504f141c23b1b81dece34c4f74d597b4d81be86
      https://github.com/lxc/lxc/commit/9504f141c23b1b81dece34c4f74d597b4d81be86
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  Merge pull request #1015 from stewartbrodie/confile-value-quotes

Allow configuration file values to be quoted


Compare: https://github.com/lxc/lxc/compare/2bec98546e2b...9504f141c23b


More information about the lxc-devel mailing list