GitWeb config: Delete temporary config on exit
GitWeb config file remains undeleted in temporary directory on Gerrit exit. Call deleteOnExit() for this temporary file. Change-Id: Ib62579b36cfe73bca0fa1f44383e6a613609cb45
This commit is contained in:
parent
5409315271
commit
5e2783db1b
@ -160,6 +160,8 @@ class GitWebServlet extends HttpServlet {
|
||||
myconf.setWritable(true, true /* owner only */);
|
||||
myconf.setReadable(true, true /* owner only */);
|
||||
|
||||
myconf.deleteOnExit();
|
||||
|
||||
_env.set("GIT_DIR", ".");
|
||||
_env.set("GITWEB_CONFIG", myconf.getAbsolutePath());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user