Browse Source

Merge pull request #6779 from ThomasWaldmann/paths-from-normpath-1.2

create --paths-from-(stdin|command): normalize paths, fixes #6778
TW 3 years ago
parent
commit
7ee4b7035b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/borg/archiver.py

+ 1 - 0
src/borg/archiver.py

@@ -554,6 +554,7 @@ class Archiver:
                     pipe_bin = sys.stdin.buffer
                 pipe = TextIOWrapper(pipe_bin, errors='surrogateescape')
                 for path in iter_separated(pipe, paths_sep):
+                    path = os.path.normpath(path)
                     try:
                         with backup_io('stat'):
                             st = os_stat(path=path, parent_fd=None, name=None, follow_symlinks=False)