]> git.ipfire.org Git - thirdparty/qemu.git/commit
qga/commands-posix: qmp_guest_set_user_password: use ga_run_command helper
authorAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Wed, 20 Mar 2024 16:16:48 +0000 (18:16 +0200)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Wed, 1 May 2024 07:10:08 +0000 (10:10 +0300)
commit0e5b75a3902f2325cbdb07954e2c2ca2f7fcb9dd
treef17398418a6f89187800a051a22e8b4cd5637c90
parent2048129625bdca60bc76d3b8c3ee51c08aacedc2
qga/commands-posix: qmp_guest_set_user_password: use ga_run_command helper

There's no need to check for the existence of the "chpasswd", "pw"
executables, as the exec() call will do that for us.

Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Link: https://lore.kernel.org/r/20240320161648.158226-8-andrey.drobyshev@virtuozzo.com
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-posix.c