From: German Service Network Date: Sun, 19 Jul 2020 08:33:45 +0000 (+0200) Subject: Merge github 394420a (Fix error reporting for unexpected characters in path.) X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d1dee43dafdd5dcd7c89464d741152c760e7bae;p=raspbmirror.git Merge github 394420a (Fix error reporting for unexpected characters in path.) --- 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")