Bug 154628

Summary: /usr/ports/textproc/bsddiff/ segfaults with -N
Product: Ports & Packages Reporter: David E. O'Brien <obrien>
Component: Individual Port(s)Assignee: Gabor Kovesdan <gabor>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description David E. O'Brien freebsd_committer freebsd_triage 2011-02-09 22:30:10 UTC
	Running bsddiff with the "-N" option when there is a new zero-byte
	file causes bsddiff to segfault.  /usr/bin/diff and /usr/local/bin/gdiff
	(GNU diffutils 3.0) simply give no output for this case.

Fix: 

Unknown - have not looked at the code or core.
How-To-Repeat: 	$ cd /tmp
	$ mkdir -p x/1 x/2
	$ touch x/2/empty
	$ bsddiff -r -N x/1 x/2
	Segmentation fault: 11 (core dumped)

	$ bsddiff -N x/1 x/2
	Segmentation fault: 11 (core dumped)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-02-09 22:30:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Gabor Kovesdan freebsd_committer freebsd_triage 2012-07-04 17:15:25 UTC
State Changed
From-To: open->closed

Fixed in the new version by jhagewood@. 
Thanks for the report.