diff options
author | brian <brian@FreeBSD.org> | 2000-08-18 00:01:44 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-08-18 00:01:44 +0000 |
commit | bac59a32d06fce1477c920a3c8aad60f73ae9af9 (patch) | |
tree | 7688894f80a2ddf31d01f87489e92fffb7e1953c /usr.sbin/ppp/command.c | |
parent | c0049c3df2bfda77644542cc72cd5d7949841805 (diff) | |
download | FreeBSD-src-bac59a32d06fce1477c920a3c8aad60f73ae9af9.zip FreeBSD-src-bac59a32d06fce1477c920a3c8aad60f73ae9af9.tar.gz |
Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUID
capabilities.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 56849f1..10790ae 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -519,7 +519,9 @@ ShellCommand(struct cmdargs const *arg, int bg) for (i = getdtablesize(); i > STDERR_FILENO; i--) fcntl(i, F_SETFD, 1); +#ifndef NOSUID setuid(ID0realuid()); +#endif if (arg->argc > arg->argn) { /* substitute pseudo args */ char *argv[MAXARGS]; |