diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-23 22:45:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-23 22:45:03 +0000 |
commit | f886c94de344a6dcc0ffeea15e925bbc7f64fda3 (patch) | |
tree | 37d5c3e456f90de696d5d15e4dab50440ce06195 /usr.sbin/bgpd | |
parent | a49c3d2e6f2795763326ab450e262d618a616db3 (diff) |
no need for endpwent()
(you lost, theo)
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 15a740cddfb..b6e3d8231a9 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.159 2005/05/03 07:01:23 djm Exp $ */ +/* $OpenBSD: rde.c,v 1.160 2005/05/23 22:45:02 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -152,8 +152,6 @@ rde_main(struct bgpd_config *config, struct peer *peer_l, setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) fatal("can't drop privileges"); - endpwent(); - signal(SIGTERM, rde_sighdlr); signal(SIGINT, rde_sighdlr); signal(SIGPIPE, SIG_IGN); diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 5969a5d7981..c2146b5b864 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.217 2005/05/03 07:01:23 djm Exp $ */ +/* $OpenBSD: session.c,v 1.218 2005/05/23 22:45:02 henning Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -215,8 +215,6 @@ session_main(struct bgpd_config *config, struct peer *cpeers, setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) fatal("can't drop privileges"); - endpwent(); - listener_cnt = 0; setup_listeners(&listener_cnt); |