From d94f7005cee0677d186f67b5641cd4a96824477c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 21 Oct 2021 11:40:23 +0200 Subject: [PATCH] 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 --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.39.2