summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/exec.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-30 03:36:11 +0000
committerbrian <brian@FreeBSD.org>1999-12-30 03:36:11 +0000
commit7a49c5353eae55a58eca0de57ed432432624e1dc (patch)
treea8c6db3de6f4ba5408490ec8c2fa4f53c70e2ae6 /usr.sbin/ppp/exec.c
parent48829a5d6b8a2d298f31a3d298c809338e2dfb1a (diff)
downloadFreeBSD-src-7a49c5353eae55a58eca0de57ed432432624e1dc.zip
FreeBSD-src-7a49c5353eae55a58eca0de57ed432432624e1dc.tar.gz
Correct usages of getuid() and geteuid()
Pointed out by: billf
Diffstat (limited to 'usr.sbin/ppp/exec.c')
-rw-r--r--usr.sbin/ppp/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/exec.c b/usr.sbin/ppp/exec.c
index e9bf01a..0102704 100644
--- a/usr.sbin/ppp/exec.c
+++ b/usr.sbin/ppp/exec.c
@@ -126,7 +126,7 @@ exec_Create(struct physical *p)
case 0:
close(fids[0]);
timer_TermService();
- setuid(geteuid());
+ setuid(ID0realuid());
switch (fork()) {
case 0:
OpenPOWER on IntegriCloud