]> 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 13:28:49 +0000 (15:28 +0200)
commit7c43fa56e70c65607f63dec8ff5a9682a3091ab2
treea63bc2c5ae4b797043525a7cc92d05191bc99df0
parent9c601e1f997d847078c4eda7ee711d6184f22545
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