[pmg-devel] [PATCH api] Fix password change of unix root user

Alwin Antreich a.antreich at proxmox.com
Fri Feb 2 13:00:27 CET 2018


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 PMG/AccessControl.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PMG/AccessControl.pm b/PMG/AccessControl.pm
index ab2ce94..b7509a7 100644
--- a/PMG/AccessControl.pm
+++ b/PMG/AccessControl.pm
@@ -78,7 +78,7 @@ sub set_user_password {
 
 	push @$cmd, '-p', $epw, $ruid;
 
-	run_command($cmd, errmsg => "change password for '$ruid' failed");
+	PVE::Tools::run_command($cmd, errmsg => "change password for '$ruid' failed");
 
     } elsif ($realm eq 'pmg') {
 	PMG::UserConfig->set_user_password($username, $password);
-- 
2.11.0




More information about the pmg-devel mailing list