From 31073c67cbd9c8a0f686a384056b41b29695303b Mon Sep 17 00:00:00 2001 From: "Daniel J. Perry" Date: Mon, 26 Jul 2021 01:36:57 -0400 Subject: [PATCH] Fix bug caused by unescaped globbing Signed-off-by: Daniel J. Perry --- whipper/command/cd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/command/cd.py b/whipper/command/cd.py index 87060e2..cee7a01 100644 --- a/whipper/command/cd.py +++ b/whipper/command/cd.py @@ -378,7 +378,7 @@ Log files will log the path to tracks relative to this directory. self.program.metadata) dirname = os.path.dirname(discName) if os.path.exists(dirname): - logs = glob.glob(os.path.join(dirname, '*.log')) + logs = glob.glob(os.path.join(glob.escape(dirname), '*.log')) if logs: msg = ("output directory %s is a finished rip" % dirname) logger.debug(msg)