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

create: ignore empty paths, print warning, fixes #5637

This commit is contained in:
Thomas Waldmann 2023-04-07 17:04:00 +02:00
parent 09781e1d30
commit 7df6301144
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

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