Bug 29316

Summary: patch to bug in dump, in handling -T option
Product: Base System Reporter: ken restivo <krestivo>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description ken restivo 2001-07-30 04:20:01 UTC
when specifying a dump with:
	dump -9a -T "Sun Jul 29 19:06:16 2001"  /
dump was complaining that no filesystem was specified. 

i dug through the sourcecode and found the following in /usr/src/sbin/dump/main.c:194 :
	argc--;
	argv++;
i simply commented out those two lines, and now dump works fine when you specify the -T option.

Fix: 

comment out the argc-- and argv++ at or about line 194 in main.c, in the case 'T' option handling section of the switch statement
How-To-Repeat: this command:
	dump -9a -T "Sun Jul 29 19:06:16 2001"  /
or any of these variants: 
	dump -9 -a -T "Sun Jul 29 19:06:16 2001"  /
	dump -9 -a -T "Sun Jul 29 19:06:16 2001"  /usr
	dump -9 -a  -f /dev/nrsa0 -T "Sun Jul 29 19:06:16 2001"  /
	dump -9 -a  -T "Sun Jul 29 19:06:16 2001" -f /dev/nrsa0   /
Comment 1 Mike Heffner freebsd_committer freebsd_triage 2001-07-30 05:06:45 UTC
State Changed
From-To: open->closed

Thanks. This was fixed in src/sbin/dump/main.c,v 1.23 and was MFC'd about 5 
weeks ago, please try again with updated src.