Auto merge of #2398 - micbou:secure-temp, r=Valloric
[READY] Create temporary files in a secure manner Fixes #2395. Depends on PR https://github.com/Valloric/ycmd/pull/629. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2398) <!-- Reviewable:end -->
This commit is contained in:
commit
ffbe7b032f
@ -99,6 +99,7 @@ CORE_OUTDATED_MESSAGE = (
|
||||
'script. See the documentation for more details.' )
|
||||
SERVER_IDLE_SUICIDE_SECONDS = 10800 # 3 hours
|
||||
DIAGNOSTIC_UI_FILETYPES = set( [ 'cpp', 'cs', 'c', 'objc', 'objcpp' ] )
|
||||
LOGFILE_FORMAT = 'ycmd_{port}_{std}_'
|
||||
|
||||
|
||||
class YouCompleteMe( object ):
|
||||
@ -143,13 +144,10 @@ class YouCompleteMe( object ):
|
||||
'--idle_suicide_seconds={0}'.format(
|
||||
SERVER_IDLE_SUICIDE_SECONDS ) ]
|
||||
|
||||
filename_format = os.path.join( utils.PathToCreatedTempDir(),
|
||||
'server_{port}_{std}.log' )
|
||||
|
||||
self._server_stdout = filename_format.format( port = server_port,
|
||||
std = 'stdout' )
|
||||
self._server_stderr = filename_format.format( port = server_port,
|
||||
std = 'stderr' )
|
||||
self._server_stdout = utils.CreateLogfile(
|
||||
LOGFILE_FORMAT.format( port = server_port, std = 'stdout' ) )
|
||||
self._server_stderr = utils.CreateLogfile(
|
||||
LOGFILE_FORMAT.format( port = server_port, std = 'stderr' ) )
|
||||
args.append( '--stdout={0}'.format( self._server_stdout ) )
|
||||
args.append( '--stderr={0}'.format( self._server_stderr ) )
|
||||
|
||||
|
2
third_party/ycmd
vendored
2
third_party/ycmd
vendored
@ -1 +1 @@
|
||||
Subproject commit 63c3d992a2db8d189cd78a25a70c87348726fc52
|
||||
Subproject commit fbc28d2e17af4c843b75bb4659baaab7a23d1d9c
|
Loading…
x
Reference in New Issue
Block a user