1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

Merge pull request #7507 from ThomasWaldmann/ignore-empty-path-master

create: ignore empty paths, print warning, fixes #5637
This commit is contained in:
TW 2023-04-07 19:39:27 +02:00 committed by GitHub
commit b8337b6f77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,6 +132,9 @@ def create_inner(archive, cache, fso):
return self.exit_code
else:
for path in args.paths:
if path == "": # issue #5637
self.print_warning("An empty string was given as PATH, ignoring.")
continue
if path == "-": # stdin
path = args.stdin_name
mode = args.stdin_mode