]> git.ipfire.org Git - thirdparty/lxc.git/commit
conf: rework lxc_config_parse_arch()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 4 May 2021 11:38:52 +0000 (13:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 4 May 2021 15:43:48 +0000 (17:43 +0200)
commit2ce89d7ff140c1a9dcaf8b1fdb161565f7915e74
tree0097b60da8d4cf648db8893ea6cdc015cf136802
parent77f626c571df2276de8109d3be1d6a8458a0e75c
conf: rework lxc_config_parse_arch()

Fix architecture parsing. So far we couldn't really differ between "want
default architecture" and "failed to parse requested architecture"
because the -1 return value means both. Fix this by using the return
value only to indicate success or failure and return the parsed
personality in a return argument.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c
src/lxc/confile.c
src/lxc/confile.h
src/lxc/tools/lxc_attach.c