]> git.gsnw.org Git - raspbmirror.git/commitdiff
Merge github 394420a (Fix error reporting for unexpected characters in path.)
authorGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:33:45 +0000 (10:33 +0200)
committerGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:33:45 +0000 (10:33 +0200)
raspbmirror.py

index c7d685b5b28f40a5ed1b6517c3cbc9d0860c751c..bbb7fd86aea19dfcfe76ef93d800999a3d589d65 100644 (file)
@@ -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")