Small patch to fix top in large NIS environments

From: David Frascone <dave_at_frascone.com>
Date: Wed, 9 Jan 2008 12:15:25 -0500
The -u flag to top is supposed to limit uid lookups.  But, it was still
spinning through the entire password database with while (getpwent()).  At
Cisco, which has a fairly large NIS database, this takes forever, and top
never starts.

I filed this bug to address it:
http://www.freebsd.org/cgi/query-pr.cgi?pr=119490

The attached patch fixes it.  This is my first submission, so let me know if
this is the proper order, etc, to post the patches (i.e. file the bug, the
post a fix)

-Dave

Received on Wed Jan 09 2008 - 16:43:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC