diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2005-01-25 13:55:06 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2005-01-25 13:55:06 +0000 |
commit | c9c1429103f327fd2341a73f4483bbe13b5d34cf (patch) | |
tree | ab3cbbfc5bca047f1e0fe0a4f80973427767ee57 /chinese | |
parent | 511b2e442a303c88ac954c8fcb7a6bf9de4e96fe (diff) | |
download | ports-c9c1429103f327fd2341a73f4483bbe13b5d34cf.tar.gz ports-c9c1429103f327fd2341a73f4483bbe13b5d34cf.zip |
Notes
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/zhcon/Makefile | 2 | ||||
-rw-r--r-- | chinese/zhcon/files/patch-src::configfile.cpp | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/chinese/zhcon/Makefile b/chinese/zhcon/Makefile index b5fe324feaaa..c0e6d4306002 100644 --- a/chinese/zhcon/Makefile +++ b/chinese/zhcon/Makefile @@ -7,7 +7,7 @@ PORTNAME= zhcon PORTVERSION= 0.2.3 -PORTREVISION= 2 +PORTREVISION= 3 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 new file mode 100644 index 000000000000..158501602803 --- /dev/null +++ b/chinese/zhcon/files/patch-src::configfile.cpp @@ -0,0 +1,21 @@ +--- src/configfile.cpp.orig Tue Jan 25 07:38:59 2005 ++++ src/configfile.cpp Tue Jan 25 07:41:19 2005 +@@ -19,13 +19,18 @@ + #include <stdexcept> + #include <fstream> + #include <cstdlib> ++#include <sys/types.h> ++#include <unistd.h> + #include "configfile.h" + + ConfigFile::ConfigFile(const char *fn) { ++ uid_t euid = geteuid(); ++ setuid(getuid()); + ifstream in(fn); + if (!in) + throw runtime_error("Could not open config file!"); + ParseFile(in); ++ setuid(euid); + } + + ConfigFile::~ConfigFile() {} |