mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Old version crashes on 15.0-CURRENT amd64. Also improve port: fix dependencies, add default option AVAHI. PR: 284127 Approved by: J.R. Oldroyd <fbsd@opal.com> Tested by: rhurlin MFH: 2025Q1
12 lines
499 B
C++
12 lines
499 B
C++
--- src/CommonUtility/utils/ESFile.cpp.orig 2024-09-12 07:10:38 UTC
|
|
+++ src/CommonUtility/utils/ESFile.cpp
|
|
@@ -45,6 +45,9 @@ CESFile* CESFile::CreateTempFileInstanceWithPrefix( ES
|
|
}
|
|
}
|
|
CESFile* CESFile::CreateTempFileInstanceWithPrefix( ESString strFolder, ESString strPrefix, ES_OPEN_MODE eOpenMode ){
|
|
+ if (!ES_CMN_FUNCS::PATH::ES_IsWritableFolder(strFolder)) {
|
|
+ return FALSE;
|
|
+ }
|
|
try {
|
|
CESFile* pcFile = new CESFile();
|
|
if( !pcFile->CreateTempFile(strFolder, strPrefix, eOpenMode) ){
|