From 38ad1eacc98ef2a682f64cf46c8d48727ff0104b Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sun, 19 Jul 2020 10:30:11 +0200 Subject: [PATCH] Merge github 3134d5b (Report rejected filename in ensuresafepath.) --- raspbmirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspbmirror.py b/raspbmirror.py index 4770fd2..9e4ec69 100644 --- a/raspbmirror.py +++ b/raspbmirror.py @@ -99,7 +99,7 @@ def ensuresafepath(path): sys.exit(1) for component in pathsplit: if not pfnallowed.fullmatch(component): - logging.info("file name contains unexpected characters") + logging.info("file name "+ascii(filename)+" contains unexpected characters") sys.exit(1) elif component[0] == '.': logging.info("filenames starting with a dot are not allowed") -- 2.43.0