- fix: secure_enviroment - set proper EGID (by Daniel Mueller)

This commit is contained in:
Thomas Ries
2004-08-22 19:04:59 +00:00
parent 6e19514e23
commit 831d01122a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
0.5.8
=====
19-Aug-2004: - don't crash on missing Contact header during registration
22-Aug-2004: - fix: secure_enviroment - set proper EGID (by Daniel Mueller)
19-Aug-2004: - fix: don't crash on missing Contact header during registration
18-Aug-2004: - reworked configure.in for FLI4L building
06-Jul-2004: - patch from Dan Weber: Open the password file for SIP
accounts at startup, so we still have access after
+2 -1
View File
@@ -271,12 +271,13 @@ void secure_enviroment (void) {
DEBUGC(DBCLASS_CONFIG,"changed gid to %i - %s",
passwd->pw_gid, (sts==0)?"Ok":"Failed");
sts = setegid(passwd->pw_uid);
sts = setegid(passwd->pw_gid);
DEBUGC(DBCLASS_CONFIG,"changed egid to %i - %s",
passwd->pw_gid, (sts==0)?"Ok":"Failed");
/* don't set the real user id - as we need to elevate privs
when setting up an RTP masquerading tunnel */
/*&&& Actually this is no longer true (7-Jul-2004/xar) */
// sts = setuid(passwd->pw_uid);
// DEBUGC(DBCLASS_CONFIG,"changed uid to %i - %s",
// passwd->pw_uid, (sts==0)?"Ok":"Failed");