mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 10:01:38 +00:00
safe_read_from: bump default size limit to 1 MiB to match pmxcfs
Done in a similar spirit as commit 8fb28ab914
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8145f9affd
commit
d94f7005ce
@ -302,7 +302,7 @@ sub safe_read_from {
|
|||||||
my ($fh, $max, $oneline, $filename) = @_;
|
my ($fh, $max, $oneline, $filename) = @_;
|
||||||
|
|
||||||
# pmxcfs file size limit
|
# 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';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user