Francois Gouget : testbot/web: Always use a random prefix for the staging filename.
Alexandre Julliard
julliard at winehq.org
Wed May 14 14:39:15 CDT 2014
Module: tools
Branch: master
Commit: 3471277f654cb79ac2dc0c4393c37a4a3fab47d8
URL: http://source.winehq.org/git/tools.git/?a=commit;h=3471277f654cb79ac2dc0c4393c37a4a3fab47d8
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed May 14 19:34:06 2014 +0200
testbot/web: Always use a random prefix for the staging filename.
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")))
{
More information about the wine-cvs
mailing list