From 5328c2885b6a82033562b8419ec4b8bc0bc97860 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 1 Aug 2025 20:15:05 +0200 Subject: [PATCH] to_key_filename: raise length limit to 120, fixes #8966 it used to be 100, but that caused test failures on some systems with deep build directories. --- src/borg/helpers/parseformat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index f8ab77c0e..8f9385e27 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -545,11 +545,11 @@ class Location: name = re.sub(r"[^\w]", "_", self.path.rstrip("/")) if self.proto not in ("file", "socket", "rclone"): name = re.sub(r"[^\w]", "_", self.host) + "__" + name - if len(name) > 100: + if len(name) > 120: # Limit file names to some reasonable length. Most file systems # limit them to 255 [unit of choice]; due to variations in unicode # handling we truncate to 100 *characters*. - name = name[:100] + name = name[:120] return os.path.join(get_keys_dir(), name) def __repr__(self):