Bug 26010

Summary: tar(1) core-dumps on '-I file'
Product: Base System Reporter: Peter Jeremy <jeremyp>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: bug-gnu-utils
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Peter Jeremy 2001-03-22 22:40:00 UTC
	The '-I' option of tar is used to specify a file containing a list
	of files to create/extract.  Whilst the option parsing code expects
	'-I' to take an option, the string passed to getoldopts() specifies
	that '-I' doesn't take an option.  This leads to NULL being passed
	to strcmp().

How-To-Repeat: 	echo "/bin" >/tmp/foo
	tar -cf /dev/null -I /tmp/foo
Comment 1 Andrey A. Chernov freebsd_committer freebsd_triage 2001-03-23 12:40:00 UTC
State Changed
From-To: open->analyzed

Fix commited into -current
Comment 2 alex freebsd_committer freebsd_triage 2001-05-29 13:39:24 UTC
Responsible Changed
From-To: freebsd-bugs->ache

Fix committed by ache, he might want to MFC it
Comment 3 Andrey A. Chernov freebsd_committer freebsd_triage 2001-11-16 21:49:46 UTC
Responsible Changed
From-To: ache->bugs

I am not able to test things on -stable
Comment 4 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-16 22:19:45 UTC
State Changed
From-To: analyzed->closed

MFC already done by kris...see rev 1.19.2.4.