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:
parent
910d57b0b0
commit
ded47a6108
@ -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
2
debian/changelog
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user