5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-03-22 06:50:42 +03:00

fix bug 77: only use cmd2string when necessary

This commit is contained in:
Dietmar Maurer 2012-01-09 12:30:48 +01:00
parent 910d57b0b0
commit ded47a6108
2 changed files with 9 additions and 3 deletions

View File

@ -200,10 +200,14 @@ sub run_command {
my ($cmd, %param) = @_;
my $old_umask;
my $cmdstr;
$cmd = [ $cmd ] if !ref($cmd);
my $cmdstr = cmd2string($cmd);
if (!ref($cmd)) {
$cmdstr = $cmd;
$cmd = [ $cmd ];
} else {
$cmdstr = cmd2string($cmd);
}
my $errmsg;
my $laststderr;

2
debian/changelog vendored
View File

@ -2,6 +2,8 @@ libpve-common-perl (1.0-12) unstable; urgency=low
* new helper kvmkeymaplist()
* fix bug 77: only use cmd2string when necessary
-- Proxmox Support Team <support@proxmox.com> Mon, 09 Jan 2012 11:44:11 +0100
libpve-common-perl (1.0-11) unstable; urgency=low