diff options
author | brian <brian@FreeBSD.org> | 2000-08-16 09:07:23 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-08-16 09:07:23 +0000 |
commit | a7aa2e6cdb6c5521e4c444686f843a5ec015f6c2 (patch) | |
tree | f92a54d342123c82413213bce4839e5b3df8ae48 /usr.sbin/ppp/bundle.c | |
parent | 724f61b07d51e05677c46e23e943f24eac26cf11 (diff) | |
download | FreeBSD-src-a7aa2e6cdb6c5521e4c444686f843a5ec015f6c2.zip FreeBSD-src-a7aa2e6cdb6c5521e4c444686f843a5ec015f6c2.tar.gz |
setproctitle() doesn't need to be called with root privs, so move
it from id.c into defs.c
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index 3e3e41f..00308c9 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -51,7 +51,6 @@ #include <sys/uio.h> #include <sys/wait.h> #if defined(__FreeBSD__) && !defined(NOKLDLOAD) -#include <sys/linker.h> #include <sys/module.h> #endif #include <termios.h> @@ -1852,7 +1851,7 @@ bundle_setsid(struct bundle *bundle, int holdsession) */ waitpid(pid, &status, 0); /* Tweak our process arguments.... */ - ID0setproctitle("session owner"); + SetTitle("session owner"); setuid(ID0realuid()); /* * Hang around for a HUP. This should happen as soon as the |