mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
qga/commands-posix: fix typo in qmp_guest_set_user_password
qga/commands-posix.c does not compile on FreeBSD due to a confusion
between "chpasswdata" (wrong) and "chpasswddata" (used in the #else
branch).
Fixes: 0e5b75a390
("qga/commands-posix: qmp_guest_set_user_password: use ga_run_command helper")
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9608723abb
commit
deb686ef0e
1 changed files with 1 additions and 1 deletions
|
@ -2173,7 +2173,7 @@ void qmp_guest_set_user_password(const char *username,
|
|||
}
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
g_autofree char *chpasswdata = g_strdup(rawpasswddata);
|
||||
g_autofree char *chpasswddata = g_strdup(rawpasswddata);
|
||||
const char *crypt_flag = crypted ? "-H" : "-h";
|
||||
const char *argv[] = {"pw", "usermod", "-n", username,
|
||||
crypt_flag, "0", NULL};
|
||||
|
|
Loading…
Reference in a new issue