]> git.gsnw.org Git - raspbmirror.git/commitdiff
Merge github 3134d5b (Report rejected filename in ensuresafepath.)
authorGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:30:11 +0000 (10:30 +0200)
committerGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:30:11 +0000 (10:30 +0200)
raspbmirror.py

index 4770fd26a625e25703ed3a62765c5a0ab429cd07..9e4ec69a1cada0493040ec61e38a928fe64bb0dc 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 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")