testbot/web: Always use a random prefix for the staging filename. (resubmit)
Francois Gouget
fgouget at codeweavers.com
Wed May 14 12:34:06 CDT 2014
Starting with the session id means we'll have to try again to find a new unique filename.
---
testbot/web/Submit.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/web/Submit.pl b/testbot/web/Submit.pl
index f73ae6a..0d9d0b4 100644
--- a/testbot/web/Submit.pl
+++ b/testbot/web/Submit.pl
@@ -794,7 +794,7 @@ sub OnSubmit
# Make sure the file has a unique name even when not picked up directly
# by the engine
- my $FileNameRandomPart = $self->GetCurrentSession()->Id;
+ my $FileNameRandomPart = GenerateRandomString(32);
while (-e ("$DataDir/staging/${FileNameRandomPart}_" .
$self->GetParam("FileName")))
{
--
2.0.0.rc0
More information about the wine-patches
mailing list