diff options
Diffstat (limited to 'chinese/zhcon/files/patch-src-configfile.cpp')
-rw-r--r-- | chinese/zhcon/files/patch-src-configfile.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chinese/zhcon/files/patch-src-configfile.cpp b/chinese/zhcon/files/patch-src-configfile.cpp new file mode 100644 index 00000000000..1955508f56e --- /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(); ++ seteuid(getuid()); + ifstream in(fn); + if (!in) + throw runtime_error("Could not open config file!"); + ParseFile(in); ++ seteuid(euid); + } + + ConfigFile::~ConfigFile() {} |