Move generated gitweb_config.perl to hidden tmp directory
Since some systems have a /tmp autocleaner, we don't want to trust our gitweb configuration file to stay there. Instead keep it with the extracted WARs inside of our own private temporary location. Change-Id: I5f4dea46a755bf3296f15ae38361452fe8df6655 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -361,7 +361,7 @@ public final class GerritLauncher {
|
||||
* directory if a directory was preferred.
|
||||
* @throws IOException the file could not be created.
|
||||
*/
|
||||
public static File createTempFile(String prefix, String suffix)
|
||||
public static synchronized File createTempFile(String prefix, String suffix)
|
||||
throws IOException {
|
||||
if (!temporaryDirectoryFound) {
|
||||
final File d = File.createTempFile("gerrit_", "_app", tmproot());
|
||||
|
Reference in New Issue
Block a user