[pve-devel] [PATCH access-control] Fix #861: use safer sprintf formatting

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Jan 8 12:43:43 CET 2016


---
 PVE/RPCEnvironment.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/RPCEnvironment.pm b/PVE/RPCEnvironment.pm
index 52c5f64..b3a7dc7 100644
--- a/PVE/RPCEnvironment.pm
+++ b/PVE/RPCEnvironment.pm
@@ -676,7 +676,7 @@ sub active_workers  {
 	my @arlist = ();
 	foreach my $task (@ta) {
 	    if (!$task->{saved}) {
-		$archive .= sprintf("$task->{upid} %08X $task->{status}\n", $task->{endtime});
+		$archive .= sprintf("%s %08X %s\n", $task->{upid}, $task->{endtime}, $task->{status});
 		$save = 1;
 		push @arlist, $task;
 		$task->{saved} = 1;
-- 
2.1.4





More information about the pve-devel mailing list