Bug 28274

Summary: [PATCH] for pkg_add to sym linked dir that is > 1 sym link deep
Product: Base System Reporter: John E. Hein <jhein>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: jkh
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description John E. Hein 2001-06-19 12:30:02 UTC
The fix in rev 1.40 (jkh) of usr.sbin/pkg_install/lib/file.c to handle sym
 linked dirs doesn't catch sym links deeper than one.

Fix: Follow sym link all the way to '.'
(patch against -current version of the file...)

$ cvs diff -u file.c
How-To-Repeat: 
mkdir /tmp/prefix
ln -s /tmp/prefix /tmp/a
ln -s /tmp/a /tmp/b
pkg_add -p /tmp/b some_pkg.tgz

You should see something to the effect of:

pkg_add: extract_plist: unable to cwd to '/tmp/b'
Comment 1 John E. Hein 2001-08-10 17:27:30 UTC
This PR can be closed

The patch was committed in rev 1.51
Comment 2 dd freebsd_committer freebsd_triage 2001-08-11 22:26:11 UTC
State Changed
From-To: open->closed

requested by originator