From nobody@FreeBSD.org  Sun Jul 29 20:12:41 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1E39B37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 29 Jul 2001 20:12:41 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f6U3CfW96015;
	Sun, 29 Jul 2001 20:12:41 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200107300312.f6U3CfW96015@freefall.freebsd.org>
Date: Sun, 29 Jul 2001 20:12:41 -0700 (PDT)
From: ken restivo <krestivo@246gt.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: patch to bug in dump, in handling -T option
X-Send-Pr-Version: www-1.0

>Number:         29316
>Category:       bin
>Synopsis:       patch to bug in dump, in handling -T option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 29 20:20:01 PDT 2001
>Closed-Date:    Sun Jul 29 21:06:45 PDT 2001
>Last-Modified:  Sun Jul 29 21:09:25 PDT 2001
>Originator:     ken restivo
>Release:        4.3-RELEASE
>Organization:
246gt.com
>Environment:
FreeBSD bc.home.246gt.com 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Mon Jun 18 22:16:48 PDT 2001     ken@bc.home.246gt.com:/usr/src/sys/compile/BC  i386
>Description:
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.


>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   /
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Sun Jul 29 21:06:45 PDT 2001 
State-Changed-Why:  
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. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29316 
>Unformatted:
