mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-10-04 21:10:03 +00:00
VZDump: handle timelocal year correctly
while this is unlikely to cause any problems, it is unnecessary to substract 1900 here - timelocal handles 4-digit years perfectly well. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5c90e08ab0
commit
998e4eebe7
@ -729,7 +729,7 @@ sub get_backup_file_list {
|
|||||||
next if $exclude_fn && $fn eq $exclude_fn;
|
next if $exclude_fn && $fn eq $exclude_fn;
|
||||||
if ($fn =~ m!/(${bkname}-(\d{4})_(\d{2})_(\d{2})-(\d{2})_(\d{2})_(\d{2})\.(tgz|((tar|vma)(\.(gz|lzo))?)))$!) {
|
if ($fn =~ m!/(${bkname}-(\d{4})_(\d{2})_(\d{2})-(\d{2})_(\d{2})_(\d{2})\.(tgz|((tar|vma)(\.(gz|lzo))?)))$!) {
|
||||||
$fn = "$dir/$1"; # untaint
|
$fn = "$dir/$1"; # untaint
|
||||||
my $t = timelocal ($7, $6, $5, $4, $3 - 1, $2 - 1900);
|
my $t = timelocal ($7, $6, $5, $4, $3 - 1, $2);
|
||||||
push @$bklist, [$fn, $t];
|
push @$bklist, [$fn, $t];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user