diff options
| author | Brian Somers <brian@FreeBSD.org> | 2000-08-18 00:01:44 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2000-08-18 00:01:44 +0000 |
| commit | 68602c3ee0f905c5841e2a4332cedbb941338cf1 (patch) | |
| tree | 574bad17f58b7fa6e9132632e6749407a1e3aa4b /usr.sbin/ppp/chap.c | |
| parent | c1a6c9e21c8fb7fe7c823d9dca6b0f99570aa101 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/chap.c')
| -rw-r--r-- | usr.sbin/ppp/chap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index 1eec6c3caf53..277b728e0d34 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/ppp/chap.c @@ -254,7 +254,9 @@ chap_StartChild(struct chap *chap, char *prog, const char *name) } for (fd = getdtablesize(); fd > STDERR_FILENO; fd--) fcntl(fd, F_SETFD, 1); +#ifndef NOSUID setuid(ID0realuid()); +#endif command_Expand(nargv, argc, (char const *const *)argv, chap->auth.physical->dl->bundle, 0, pid); execvp(nargv[0], nargv); |
