[PATCH] testbot/Janitor: Document where filenames are untainted.
Francois Gouget
fgouget at codeweavers.com
Sun Dec 29 17:46:13 CST 2019
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
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 139faea94..35500e1f0 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);
--
2.20.1
More information about the wine-devel
mailing list