From 1d1dee43dafdd5dcd7c89464d741152c760e7bae Mon Sep 17 00:00:00 2001 From: German Service Network Date: Sun, 19 Jul 2020 10:33:45 +0200 Subject: [PATCH] Merge github 394420a (Fix error reporting for unexpected characters in path.) --- raspbmirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspbmirror.py b/raspbmirror.py index c7d685b..bbb7fd8 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 "+ascii(filename)+" contains unexpected characters") + logging.info("component "+ascii(component)+" contains unexpected characters") sys.exit(1) elif component[0] == '.': logging.info("filenames starting with a dot are not allowed") -- 2.43.0