Bug 20775

Summary: potential problem with /usr/bin/sockstat
Product: Base System Reporter: Marc Silver <marcs>
Component: binAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Marc Silver 2000-08-22 08:50:02 UTC
	/usr/bin/sockstat incorrectly makes a call to 'netstat/fstat' instead of using the full pathname of the binary when calling it.  If a user's path is incorrectly set, this can cause a false binary/script to be run in place of the correct /usr/bin/ commands.

How-To-Repeat: 
	Simply create an executable netstat in your current directory, and change your PATH to that directory.  When you run sockstat it will execute the binary in your current directory.
Comment 1 ru freebsd_committer freebsd_triage 2000-08-22 09:00:30 UTC
Responsible Changed
From-To: freebsd-bugs->des

Over to maintainer.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2000-08-30 10:19:20 UTC
State Changed
From-To: open->feedback

Fixed in -CURRENT, MFC candidate.
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2000-09-17 21:03:29 UTC
State Changed
From-To: feedback->closed

MFCed