aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/chat.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-12-30 03:36:11 +0000
committerBrian Somers <brian@FreeBSD.org>1999-12-30 03:36:11 +0000
commita19a5c023dc8470b49a6b7728b34e8801fe5a671 (patch)
tree86b8f78e5add64c971fcdbbad1ae31bf195609a3 /usr.sbin/ppp/chat.c
parentb6fd7c61881bdf8e3f8180caa0103d71181cb3b0 (diff)
Notes
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r--usr.sbin/ppp/chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c
index c6acdb1df38b..44849365b50e 100644
--- a/usr.sbin/ppp/chat.c
+++ b/usr.sbin/ppp/chat.c
@@ -731,7 +731,7 @@ ExecStr(struct physical *physical, char *command, char *out, int olen)
open(_PATH_DEVNULL, O_RDWR); /* Leave it closed if it fails... */
for (i = getdtablesize(); i > 3; i--)
fcntl(i, F_SETFD, 1);
- setuid(geteuid());
+ setuid(ID0realuid());
execvp(argv[0], argv);
fprintf(stderr, "execvp: %s: %s\n", argv[0], strerror(errno));
_exit(127);