diff options
author | nectar <nectar@FreeBSD.org> | 2005-01-25 14:54:41 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2005-01-25 14:54:41 +0000 |
commit | 92020ac18f6f0fd01cc56b93127204d37e7ab3a6 (patch) | |
tree | 782b795a1f699111b36c200a873b23d6c702aafa /chinese/zhcon | |
parent | b529ba1294b98deec8bcbde8035d64f2a338b84d (diff) | |
download | FreeBSD-ports-92020ac18f6f0fd01cc56b93127204d37e7ab3a6.zip FreeBSD-ports-92020ac18f6f0fd01cc56b93127204d37e7ab3a6.tar.gz |
Oops, we want to twiddle the effective-user-ID, not the real-user-ID,
since we need to recover credentials. Relative to the previous commit,
s/setuid/seteuid/g.
Reminded by: a hot shower
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 c0e6d43..af9ac87 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 1585016..1955508 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() {} |