From: Thomas Lamprecht Date: Thu, 21 Oct 2021 09:40:23 +0000 (+0200) Subject: safe_read_from: bump default size limit to 1 MiB to match pmxcfs X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=d94f7005cee0677d186f67b5641cd4a96824477c safe_read_from: bump default size limit to 1 MiB to match pmxcfs Done in a similar spirit as commit 8fb28ab914a9a9 Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index c17198d..a1571ea 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -302,7 +302,7 @@ sub safe_read_from { my ($fh, $max, $oneline, $filename) = @_; # pmxcfs file size limit - $max = 512*1024 if !$max; + $max = 1024 * 1024 if !$max; my $subject = defined($filename) ? "file '$filename'" : 'input';