summaryrefslogtreecommitdiff
path: root/chinese/zhcon/files/patch-src::configfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/zhcon/files/patch-src::configfile.cpp')
-rw-r--r--chinese/zhcon/files/patch-src::configfile.cpp4
1 files changed, 2 insertions, 2 deletions
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() {}