]> git.gsnw.org Git - raspbmirror.git/commitdiff
Merge github 80e2657 (Further fix error handling in raspbmirror.)
authorGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:35:22 +0000 (10:35 +0200)
committerGerman Service Network <support@gsnw.de>
Sun, 19 Jul 2020 08:35:22 +0000 (10:35 +0200)
raspbmirror.py

index bbb7fd86aea19dfcfe76ef93d800999a3d589d65..7a296311fb67a13aaa61685b04eddf7be38802a3 100644 (file)
@@ -99,7 +99,7 @@ def ensuresafepath(path):
                sys.exit(1)
        for component in pathsplit:
                if not pfnallowed.fullmatch(component):
-                       logging.info("component "+ascii(component)+" contains unexpected characters")
+                       logging.info("component "+ascii(component)+" in path "+ascii(path)+" contains unexpected characters")
                        sys.exit(1)
                elif component[0] == '.':
                        logging.info("filenames starting with a dot are not allowed")