On Mon, Apr 11, 2011 at 08:03:46PM +0000, Martin Husemann wrote: > Module Name: src > Committed By: martin > Date: Mon Apr 11 20:03:45 UTC 2011 > > Modified Files: > src/distrib/sets/lists/etc: mi > src/etc: Makefile > src/etc/mtree: NetBSD.dist.base special > > Log Message: > When run as root, tcpdump will chroot to /var/run/tcpdump - but it can > not look up /etc/protcols in there. So install a copy of /etc/protocols > into the chroot area. > Fixes PR bin/44721.
Wouldn't it be less confusing to have opened /etc/protocols before doing the chroot ?? This might mean persuading the library code to open /dev/fd/n David -- David Laight: da...@l8s.co.uk