Skip to content
Permalink
Browse files

priviledge /tmp over /var/tmp for POSIX temporary folder

  • Loading branch information...
Arnaud Bouchez
Arnaud Bouchez committed Apr 15, 2019
1 parent cf0b075 commit 0dea0cfd41f0b9dd9b7908d0fdb8e0bffa81578d
Showing with 5 additions and 5 deletions.
  1. +3 −3 SynCommons.pas
  2. +1 −1 SynCrtSock.pas
  3. +1 −1 SynopseCommit.inc
if _TempPath='' then
_TempPath := GetEnvironmentVariable('TMP');
if _TempPath='' then
if DirectoryExists('/var/tmp') then
_TempPath := '/var/tmp' else
_TempPath := '/tmp';
if DirectoryExists('/tmp') then
_TempPath := '/tmp' else
_TempPath := '/var/tmp';
_TempPath := IncludeTrailingPathDelimiter(_TempPath);
end;
result := _TempPath;
@@ -10340,7 +10340,7 @@ procedure HTTP_RESPONSE.SetContent(var DataChunk: HTTP_DATA_CHUNK_INMEMORY;
const Content, ContentType: SockString);
begin
fillchar(DataChunk,sizeof(DataChunk),0);
if length(ContentType) > 0 then begin
if ContentType<>'' then begin
Headers.KnownHeaders[reqContentType].RawValueLength := length(ContentType);
Headers.KnownHeaders[reqContentType].pRawValue := pointer(ContentType);
end;
@@ -1 +1 @@
'1.18.5178'
'1.18.5180'

0 comments on commit 0dea0cf

Please sign in to comment.
You can’t perform that action at this time.