From 23f7388e21cdc01a48e4ddd5526066836a1e5311 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 23 Feb 2026 19:59:08 +0100 Subject: [PATCH] remove_dotdot_prefixes: remove bad assert, fixes #9406 guess the assert was meant to make sure that we do not have backslashes as path separators, but did not consider that on linux a backslash can be part of a filename (without being a path separator). --- src/borg/helpers/fs.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/borg/helpers/fs.py b/src/borg/helpers/fs.py index e7eaf8166..e187257ed 100644 --- a/src/borg/helpers/fs.py +++ b/src/borg/helpers/fs.py @@ -328,7 +328,6 @@ def remove_dotdot_prefixes(path): `path` is expected to be normalized already (e.g. via `posixpath.normpath()`). """ - assert "\\" not in path if is_win32: if len(path) > 1 and path[1] == ":": path = path.replace(":", "", 1)