]> git.proxmox.com Git - pve-common.git/commitdiff
safe_read_from: bump default size limit to 1 MiB to match pmxcfs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Oct 2021 09:40:23 +0000 (11:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Oct 2021 09:40:27 +0000 (11:40 +0200)
Done in a similar spirit as commit 8fb28ab914a9a9

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Tools.pm

index c17198dbae0c75313e919a639affcad952177f2f..a1571ea3d9fa8c05746fea45ad7c525b197d5c6d 100644 (file)
@@ -302,7 +302,7 @@ sub safe_read_from {
     my ($fh, $max, $oneline, $filename) = @_;
 
     # pmxcfs file size limit
     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';
 
 
     my $subject = defined($filename) ? "file '$filename'" : 'input';