1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-04 10:39:50 +00:00

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

create --paths-from-(stdin|command): normalize paths, fixes #6778
This commit is contained in:
TW 2022-06-22 00:20:20 +02:00 committed by GitHub
commit 7ee4b7035b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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