mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-09 08:51:54 -04:00
Merge pull request #8969 from ThomasWaldmann/fix-8966
to_key_filename: raise length limit to 120, fixes #8966
This commit is contained in:
commit
8659895f30
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue