diff options
author | ache <ache@FreeBSD.org> | 1995-04-29 13:38:14 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-04-29 13:38:14 +0000 |
commit | 36b226ccf39da3bbf440812e45784a4743709217 (patch) | |
tree | ab3c203fd9808e786af3135ce399b4361907ca6b /usr.sbin/ppp/systems.c | |
parent | 43bf61af63baf12813d0bd908066a30e8653b547 (diff) | |
download | FreeBSD-src-36b226ccf39da3bbf440812e45784a4743709217.zip FreeBSD-src-36b226ccf39da3bbf440812e45784a4743709217.tar.gz |
Remove FreeBSD-specific setre*() cheat, we have working thing now
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r-- | usr.sbin/ppp/systems.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index 1541b06..340d3e7 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id:$ + * $Id: systems.c,v 1.3 1995/02/26 12:17:59 amurai Exp $ * * TODO: */ @@ -47,15 +47,8 @@ static void SetUserId() { if (!usermode) { -#ifdef __FreeBSD__ - setruid(euid); - seteuid(uid); - setrgid(egid); - setegid(gid); -#else setreuid(euid, uid); setregid(egid, gid); -#endif usermode = 1; } } @@ -64,15 +57,8 @@ static void SetPppId() { if (usermode) { -#ifdef __FreeBSD__ - setruid(uid); - seteuid(euid); - setrgid(gid); - setegid(egid); -#else setreuid(uid, euid); setregid(gid, egid); -#endif usermode = 0; } } |