aboutsummaryrefslogtreecommitdiff
path: root/chinese/zhcon
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/zhcon')
-rw-r--r--chinese/zhcon/Makefile2
-rw-r--r--chinese/zhcon/files/patch-src::configfile.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/chinese/zhcon/Makefile b/chinese/zhcon/Makefile
index c0e6d4306002..af9ac87a3716 100644
--- a/chinese/zhcon/Makefile
+++ b/chinese/zhcon/Makefile
@@ -7,7 +7,7 @@
PORTNAME= zhcon
PORTVERSION= 0.2.3
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/chinese/zhcon/files/patch-src::configfile.cpp b/chinese/zhcon/files/patch-src::configfile.cpp
index 158501602803..1955508f56ee 100644
--- a/chinese/zhcon/files/patch-src::configfile.cpp
+++ b/chinese/zhcon/files/patch-src::configfile.cpp
@@ -10,12 +10,12 @@
ConfigFile::ConfigFile(const char *fn) {
+ uid_t euid = geteuid();
-+ setuid(getuid());
++ seteuid(getuid());
ifstream in(fn);
if (!in)
throw runtime_error("Could not open config file!");
ParseFile(in);
-+ setuid(euid);
++ seteuid(euid);
}
ConfigFile::~ConfigFile() {}