diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-23 22:55:16 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-23 22:55:16 +0000 |
commit | 7856a68f4f13e5e9410ec7063ac49659a42e9975 (patch) | |
tree | c588d25bc8b9023eed6f34ea947cc5f460d6fa72 /usr.sbin | |
parent | 38d24d3b457409054d4cea649b40faa6af21f357 (diff) |
-endpwent
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/dhcpd/dhcpd.c | 3 | ||||
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.c | 3 | ||||
-rw-r--r-- | usr.sbin/hostapd/privsep.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c index 6afd37972f8..657867c0792 100644 --- a/usr.sbin/dhcpd/dhcpd.c +++ b/usr.sbin/dhcpd/dhcpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.c,v 1.23 2005/05/02 02:29:27 djm Exp $ */ +/* $OpenBSD: dhcpd.c,v 1.24 2005/05/23 22:54:55 henning Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -138,7 +138,6 @@ main(int argc, char *argv[]) setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) || setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) error("can't drop privileges: %m"); - endpwent(); bootp_packet_handler = do_packet; dispatch(); diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c index f349ca46e1e..ec1962db1a7 100644 --- a/usr.sbin/dhcrelay/dhcrelay.c +++ b/usr.sbin/dhcrelay/dhcrelay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcrelay.c,v 1.24 2005/05/02 02:29:27 djm Exp $ */ +/* $OpenBSD: dhcrelay.c,v 1.25 2005/05/23 22:54:34 henning Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -182,7 +182,6 @@ main(int argc, char *argv[]) setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) || setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) error("can't drop privileges: %m"); - endpwent(); dispatch(); /* not reached */ diff --git a/usr.sbin/hostapd/privsep.c b/usr.sbin/hostapd/privsep.c index f4221208709..e9848f8803c 100644 --- a/usr.sbin/hostapd/privsep.c +++ b/usr.sbin/hostapd/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.9 2005/04/13 21:15:36 reyk Exp $ */ +/* $OpenBSD: privsep.c,v 1.10 2005/05/23 22:55:15 henning Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -91,7 +91,6 @@ hostapd_priv_init(struct hostapd_config *cfg) if ((pw = getpwnam(HOSTAPD_USER)) == NULL) hostapd_fatal("failed to get user \"%s\"\n", HOSTAPD_USER); - endpwent(); endservent(); /* Create sockets */ |