From 82a6fff0b2c9bae6d0ac14723f365860b0f609b8 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 10 Apr 2005 19:59:03 +0000 Subject: do not forget to call endpwent(). ok moritz@ --- usr.sbin/tcpdump/privsep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c index 3cfd52879b0..d2326c671d7 100644 --- a/usr.sbin/tcpdump/privsep.c +++ b/usr.sbin/tcpdump/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.15 2005/04/10 16:10:37 moritz Exp $ */ +/* $OpenBSD: privsep.c,v 1.16 2005/04/10 19:59:02 otto Exp $ */ /* * Copyright (c) 2003 Can Erkin Acar @@ -157,6 +157,7 @@ priv_init(int argc, char **argv) pw = getpwnam("_tcpdump"); if (pw == NULL) errx(1, "unknown user _tcpdump"); + endpwent(); /* chroot, drop privs and return */ if (chroot(pw->pw_dir) != 0) -- cgit v1.2.3