diff options
author | flz <flz@FreeBSD.org> | 2005-07-01 02:11:28 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-07-01 02:11:28 +0800 |
commit | 8e37c336ca92e0bc67064421664fe943d7339a5c (patch) | |
tree | 6481a78a22c7edd0e16e02e2f4db6ee2d27b483a /net | |
parent | b7adc512bd6dd2444267341ca9fad1c24e82d832 (diff) | |
download | freebsd-ports-graphics-8e37c336ca92e0bc67064421664fe943d7339a5c.tar.gz freebsd-ports-graphics-8e37c336ca92e0bc67064421664fe943d7339a5c.tar.zst freebsd-ports-graphics-8e37c336ca92e0bc67064421664fe943d7339a5c.zip |
- Fix configuration file handling (software problem).
PR: ports/82815
Submitted by: maintainer
Obtained from: GateKeeper CVS
Diffstat (limited to 'net')
-rw-r--r-- | net/gatekeeper/Makefile | 2 | ||||
-rw-r--r-- | net/gatekeeper/files/patch-Toolkit.cxx | 31 |
2 files changed, 32 insertions, 1 deletions
diff --git a/net/gatekeeper/Makefile b/net/gatekeeper/Makefile index 4359c25f38c..b2fa412e02e 100644 --- a/net/gatekeeper/Makefile +++ b/net/gatekeeper/Makefile @@ -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 diff --git a/net/gatekeeper/files/patch-Toolkit.cxx b/net/gatekeeper/files/patch-Toolkit.cxx new file mode 100644 index 00000000000..bf964603e58 --- /dev/null +++ b/net/gatekeeper/files/patch-Toolkit.cxx @@ -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() |