From 4ded5e85bb1d432047f80efba98fe1ad8706c2f0 Mon Sep 17 00:00:00 2001 From: mycroft Date: Mon, 19 Sep 1994 02:56:37 +0000 Subject: [PATCH] Use setuid() and setgid(), not setreuid() and setregid(). --- usr.sbin/pppd/main.c | 6 +++--- usr.sbin/pppd/pppd/main.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 5ace15c6672a..940452c725e6 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.11 1994/07/04 19:30:22 deraadt Exp $"; +static char rcsid[] = "$Id: main.c,v 1.12 1994/09/19 02:56:37 mycroft Exp $"; #endif #define SETSID @@ -1144,8 +1144,8 @@ device_script(program, in, out) } if (pid == 0) { - setreuid(getuid(), getuid()); - setregid(getgid(), getgid()); + setuid(getuid()); + setgid(getgid()); sigprocmask(SIG_SETMASK, &mask, NULL); dup2(in, 0); dup2(out, 1); diff --git a/usr.sbin/pppd/pppd/main.c b/usr.sbin/pppd/pppd/main.c index 5ace15c6672a..940452c725e6 100644 --- a/usr.sbin/pppd/pppd/main.c +++ b/usr.sbin/pppd/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.11 1994/07/04 19:30:22 deraadt Exp $"; +static char rcsid[] = "$Id: main.c,v 1.12 1994/09/19 02:56:37 mycroft Exp $"; #endif #define SETSID @@ -1144,8 +1144,8 @@ device_script(program, in, out) } if (pid == 0) { - setreuid(getuid(), getuid()); - setregid(getgid(), getgid()); + setuid(getuid()); + setgid(getgid()); sigprocmask(SIG_SETMASK, &mask, NULL); dup2(in, 0); dup2(out, 1);