From 7df6301144a02064e796acac520ff1145f6608a2 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 7 Apr 2023 17:04:00 +0200 Subject: [PATCH] create: ignore empty paths, print warning, fixes #5637 --- src/borg/archiver/create_cmd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/borg/archiver/create_cmd.py b/src/borg/archiver/create_cmd.py index 911abb378..fbf9b6455 100644 --- a/src/borg/archiver/create_cmd.py +++ b/src/borg/archiver/create_cmd.py @@ -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