Bug 27829

Summary: pax(1) uid/gid cache is read-only
Product: Base System Reporter: mwatson <mwatson>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description mwatson 2001-06-02 06:30:00 UTC
We found a bug in the Darwin pax where the uid/gid cache was not being used correctly. This resulted in a 10x slowdown of archive extraction in some cases. It's especially bad when archives contain unknown uid/gids

Fix: These diffs may need to be modified to sync up with the current version...
How-To-Repeat: Run pax under gdb. break on getpwuid() & getpwnam(). Notice how often you hit the breakpoints.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-06-02 10:24:55 UTC
Responsible Changed
From-To: freebsd-bugs->kris

I've been hacking on pax a bit, I can take a look at this in a month or so.
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2002-08-24 05:16:36 UTC
Responsible Changed
From-To: kris->freebsd-bugs

I won't have time to look at this any time soon.
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2013-05-14 22:13:08 UTC
State Changed
From-To: open->closed

Close: this bug was fixed by cperciva in March 2004 
See: https://svnweb.freebsd.org/base/head/bin/pax/cache.c?r1=114583&r2=127055&view=patch