From 24207674f36e900fd2aa51787cb70756413962c2 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 9 Apr 2023 19:57:41 +0200 Subject: deprecate mach_nix --- tools/sops-inventory/sops_inventory/__main__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/sops-inventory/sops_inventory/__main__.py') diff --git a/tools/sops-inventory/sops_inventory/__main__.py b/tools/sops-inventory/sops_inventory/__main__.py index aaddda8c..f43b7c2f 100644 --- a/tools/sops-inventory/sops_inventory/__main__.py +++ b/tools/sops-inventory/sops_inventory/__main__.py @@ -20,12 +20,14 @@ except ImportError: SOPS_TYPES = frozenset({'kms', 'gcp_kms', 'azure_kv', 'hc_vault', 'age', 'pgp'}) +BUFFER_SIZE = os.sysconf('SC_PAGESIZE') + def readnull(fh): buffer = b'' while True: - chunk = fh.read(4096) + chunk = fh.read(BUFFER_SIZE) buffer += chunk if not buffer: break -- cgit v1.2.3