From b651b9ac26d85f077bba1a8b31cad8ea214554c3 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Wed, 21 Jan 2026 16:08:00 +0100 Subject: [PATCH] config file can be exactly the max size --- .../java/org/cryptomator/launcher/AdminPropertiesSetter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java index 590a68b57..5c1c2ed60 100644 --- a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java +++ b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java @@ -93,7 +93,7 @@ class AdminPropertiesSetter { static Properties loadAdminProperties(Path adminPropertiesPath) { var adminProps = new Properties(); try (var reader = Files.newBufferedReader(adminPropertiesPath, StandardCharsets.UTF_8)) { - if(Files.size(adminPropertiesPath) >= MAX_CONFIG_SIZE_BYTES) { + if(Files.size(adminPropertiesPath) > MAX_CONFIG_SIZE_BYTES) { throw new IOException("Config file %s exceeds maximum size of %d".formatted(adminPropertiesPath, MAX_CONFIG_SIZE_BYTES)); } adminProps.load(reader);