projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a83df1
)
Fix #861: use safer sprintf formatting
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Fri, 8 Jan 2016 11:43:58 +0000
(12:43 +0100)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 8 Jan 2016 11:49:40 +0000
(12:49 +0100)
src/PVE/INotify.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/INotify.pm
b/src/PVE/INotify.pm
index 60610ce507f467d20d66ea30a4e4ec6a38b1dbf1..6cec84bc2a2a3e0e4e0aca97da660b9d896237cf 100644
(file)
--- a/
src/PVE/INotify.pm
+++ b/
src/PVE/INotify.pm
@@
-648,9
+648,9
@@
sub write_active_workers {
my $saved = $task->{saved} ? 1 : 0;
if ($task->{endtime}) {
if ($task->{status}) {
- $raw .= sprintf("
$upid $saved %08X $task->{status}\n", $task->{endtime
});
+ $raw .= sprintf("
%s %s %08X %s\n", $upid, $saved, $task->{endtime}, $task->{status
});
} else {
- $raw .= sprintf("
$upid $saved %08X\n"
, $task->{endtime});
+ $raw .= sprintf("
%s %s %08X\n", $upid, $saved
, $task->{endtime});
}
} else {
$raw .= "$upid $saved\n";