diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2005-01-25 14:54:41 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2005-01-25 14:54:41 +0000 |
commit | 69a4638c64e5280f5b5ca34123a815493ae65635 (patch) | |
tree | 2fd6ce56f7a85aac908b6025d3fbde8cd2f5bb78 /chinese/zhcon | |
parent | aa1c1b50fa9915896b3ca08767ed9159c4ce3f8b (diff) | |
download | ports-69a4638c64e5280f5b5ca34123a815493ae65635.tar.gz ports-69a4638c64e5280f5b5ca34123a815493ae65635.zip |
Notes
Diffstat (limited to 'chinese/zhcon')
-rw-r--r-- | chinese/zhcon/Makefile | 2 | ||||
-rw-r--r-- | chinese/zhcon/files/patch-src::configfile.cpp | 4 |
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() {} |