mirror of https://github.com/borgbackup/borg.git
create --paths-from-(stdin|command): normalize paths, fixes #6778
This commit is contained in:
parent
a3a1974c52
commit
28b32e7a57
|
@ -779,6 +779,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)
|
||||||
|
|
Loading…
Reference in New Issue