Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49025 Details for
Bug 78117
app-i18n/zhcon: Unauthorized file access (CAN-2005-0072)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
CAN-2005-0072.patch
CAN-2005-0072.patch (text/plain), 547 bytes, created by
Thierry Carrez (RETIRED)
on 2005-01-20 01:46:11 UTC
(
hide
)
Description:
CAN-2005-0072.patch
Filename:
MIME Type:
Creator:
Thierry Carrez (RETIRED)
Created:
2005-01-20 01:46:11 UTC
Size:
547 bytes
patch
obsolete
>--- zhcon-0.2.orig/src/configfile.cpp >+++ zhcon-0.2/src/configfile.cpp >@@ -19,13 +19,23 @@ > #include <stdexcept> > #include <fstream> > #include <cstdlib> >+#include <unistd.h> >+#include <sys/types.h> > #include "configfile.h" > > ConfigFile::ConfigFile(const char *fn) { >+ uid_t ruid, euid; >+ >+ ruid = getuid(); >+ euid = geteuid(); >+ >+ setreuid(euid, ruid); >+ > ifstream in(fn); > if (!in) > throw runtime_error("Could not open config file!"); > ParseFile(in); >+ setreuid(ruid, euid); > } > > ConfigFile::~ConfigFile() {}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 78117
: 49025