Francois Gouget : testbot/Janitor: Document where filenames are untainted.

Alexandre Julliard julliard at winehq.org
Mon Dec 30 15:58:20 CST 2019


Module: tools
Branch: master
Commit: 6ee085bd0ee8fd68c72fc48db1f01b7a2b35cc03
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=6ee085bd0ee8fd68c72fc48db1f01b7a2b35cc03

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Dec 30 00:46:13 2019 +0100

testbot/Janitor: Document where filenames are untainted.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/Janitor.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testbot/bin/Janitor.pl b/testbot/bin/Janitor.pl
index 139faea..35500e1 100755
--- a/testbot/bin/Janitor.pl
+++ b/testbot/bin/Janitor.pl
@@ -261,7 +261,7 @@ if (opendir(my $dh, "$DataDir/staging"))
   foreach my $Entry (@Entries)
   {
     next if ($Entry eq "." or $Entry eq "..");
-    $Entry =~ m%^([^/]+)$%;
+    $Entry =~ m%^([^/]+)$%; # untaint
     my $FileName = "$DataDir/staging/$1";
     my $Age = int((-M $FileName) + 0.5);
 




More information about the wine-cvs mailing list