[lxc-devel] [lxc/lxc] 3dca1a: implement lxc_string_split_quoted
GitHub
noreply at github.com
Thu Oct 5 17:30:14 UTC 2017
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 3dca1af064e3ac25be7deeff1aca9f41ea935358
https://github.com/lxc/lxc/commit/3dca1af064e3ac25be7deeff1aca9f41ea935358
Author: Serge Hallyn <shallyn at cisco.com>
Date: 2017-10-04 (Wed, 04 Oct 2017)
Changed paths:
M src/lxc/tools/lxc_execute.c
M src/lxc/utils.c
M src/lxc/utils.h
M templates/lxc-oci.in
Log Message:
-----------
implement lxc_string_split_quoted
lxc_string_split_quoted() splits a string on spaces, but keeps
groups in single or double qoutes together. In other words,
generally what we'd want for argv behavior.
Switch lxc-execute to use this for lxc.execute.cmd.
Switch lxc-oci template to put the lxc.execute.cmd inside single
quotes, because parse_line() will eat those. If we don't do that,
then if we have lxc.execute.cmd = /bin/echo "hello, world", then the
last double quote will disappear.
Signed-off-by: Serge Hallyn <shallyn at cisco.com>
Commit: c38d860cc30db7b5320cc673cd2d32c82345f88a
https://github.com/lxc/lxc/commit/c38d860cc30db7b5320cc673cd2d32c82345f88a
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-10-05 (Thu, 05 Oct 2017)
Changed paths:
M src/lxc/tools/lxc_execute.c
M src/lxc/utils.c
M src/lxc/utils.h
M templates/lxc-oci.in
Log Message:
-----------
Merge pull request #1844 from hallyn/2017-10-04/quote
implement lxc_string_split_quoted
Compare: https://github.com/lxc/lxc/compare/fe0fe85d00b0...c38d860cc30d
More information about the lxc-devel
mailing list