mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix configuration file handling (software problem).
PR: ports/82815 Submitted by: maintainer Obtained from: GateKeeper CVS
This commit is contained in:
parent
3e8732e462
commit
52de4a5dcf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138258
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gatekeeper
|
||||
PORTVERSION= 2.2.2
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= openh323gk
|
||||
|
31
net/gatekeeper/files/patch-Toolkit.cxx
Normal file
31
net/gatekeeper/files/patch-Toolkit.cxx
Normal file
@ -0,0 +1,31 @@
|
||||
--- Toolkit.cxx.orig Thu Jun 30 12:09:18 2005
|
||||
+++ Toolkit.cxx Thu Jun 30 12:10:07 2005
|
||||
@@ -783,18 +783,19 @@
|
||||
m_Config = new PConfig(m_ConfigFilePath, m_ConfigDefaultSection);
|
||||
}
|
||||
|
||||
- if (!m_extConfigFilePath)
|
||||
+ if (!m_extConfigFilePath) {
|
||||
PFile::Remove(m_extConfigFilePath);
|
||||
|
||||
- // generate a unique name
|
||||
- do {
|
||||
- m_extConfigFilePath = tmpdir + PDIR_SEPARATOR + "gnugk.ini-" + PString(PString::Unsigned, rand()%10000);
|
||||
- PTRACE(5, "GK\tTrying file name "<< m_extConfigFilePath << " for external config");
|
||||
- } while (PFile::Exists(m_extConfigFilePath));
|
||||
+ // generate a unique name
|
||||
+ do {
|
||||
+ m_extConfigFilePath = tmpdir + PDIR_SEPARATOR + "gnugk.ini-" + PString(PString::Unsigned, rand()%10000);
|
||||
+ PTRACE(5, "GK\tTrying file name "<< m_extConfigFilePath << " for external config");
|
||||
+ } while (PFile::Exists(m_extConfigFilePath));
|
||||
|
||||
- m_Config = new GatekeeperConfig(
|
||||
- m_extConfigFilePath, m_ConfigDefaultSection, m_Config
|
||||
- );
|
||||
+ m_Config = new GatekeeperConfig(
|
||||
+ m_extConfigFilePath, m_ConfigDefaultSection, m_Config
|
||||
+ );
|
||||
+ }
|
||||
}
|
||||
|
||||
void Toolkit::ReloadSQLConfig()
|
Loading…
Reference in New Issue
Block a user