These patches add optional 'create' flag to guest-set-user-password command. When it is specified, a new user will be created if it does not exist yet.
Since v1: - fixed english language mistakes in comments - json description now mentions 'create' as default to false - capture stdout/stderr from useradd/chpasswd and send iti back with the error message to caller - split to two patches Signed-off-by: Yuri Pudgorodskiy <y...@virtuozzo.com> Signed-off-by: Denis V. Lunev <d...@openvz.org> CC: Eric Blake <ebl...@redhat.com> CC: Michael Roth <mdr...@linux.vnet.ibm.com> Yuriy Pudgorodskiy (2): create ga_run_program() helper for guest-set-user-password guest-set-user-password - added ability to create new user qga/commands-posix.c | 215 +++++++++++++++++++++++++++++++++++++-------------- qga/commands-win32.c | 25 +++++- qga/qapi-schema.json | 5 +- 3 files changed, 186 insertions(+), 59 deletions(-) -- 2.1.4