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:
parent
09781e1d30
commit
7df6301144
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue