diff options
author | nectar <nectar@FreeBSD.org> | 2005-01-25 22:54:41 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2005-01-25 22:54:41 +0800 |
commit | 92020ac18f6f0fd01cc56b93127204d37e7ab3a6 (patch) | |
tree | 782b795a1f699111b36c200a873b23d6c702aafa /chinese/zhcon | |
parent | b529ba1294b98deec8bcbde8035d64f2a338b84d (diff) | |
download | freebsd-ports-gnome-92020ac18f6f0fd01cc56b93127204d37e7ab3a6.tar.gz freebsd-ports-gnome-92020ac18f6f0fd01cc56b93127204d37e7ab3a6.tar.zst freebsd-ports-gnome-92020ac18f6f0fd01cc56b93127204d37e7ab3a6.zip |
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 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() {} |