From ortmann@localhost.nodak.edu  Sun Apr 23 10:20:05 1995
Received: from localhost.nodak.edu (ndts6.pt01.ndsu.NoDak.edu [134.129.108.181])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA02646
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 23 Apr 1995 10:20:02 -0700
Received: (from ortmann@localhost) by localhost.nodak.edu (8.6.11/8.6.9) id MAA16069; Sun, 23 Apr 1995 12:18:39 -0500
Message-Id: <199504231718.MAA16069@localhost.nodak.edu>
Date: Sun, 23 Apr 1995 12:18:39 -0500
From: ortmann@plains.nodak.edu
Reply-To: ortmann@plains.nodak.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: incorrect argument handling in "dump"
X-Send-Pr-Version: 3.2

>Number:         358
>Category:       bin
>Synopsis:       incorrect argument handling in "dump"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 23 10:30:00 1995
>Closed-Date:    Sun Apr 23 11:37:03 PDT 1995
>Last-Modified:
>Originator:     Daniel Ortmann
>Release:        FreeBSD 2.0.950418-SNAP i386
>Organization:
>Environment:

>Description:

	The command "dump -0cu -b 8 -B 349525 -f /dev/nrst0 /" gives
	an error of "Unknown arguments to dump: 8 -B 349525 -f /dev/nrst0 /".

	The problem seems to be that numargs() is not correctly adjusting
	the value of argc and argv.  The above error message is given
	after the for/switch argument processing is left.

>How-To-Repeat:

	Repeat by running the command:
	"dump -0cu -b 8 -B 349525 -f /dev/nrst0 /"

>Fix:
	
	Work around by accepting dump defaults.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rgrimes 
State-Changed-When: Sun Apr 23 11:37:03 PDT 1995 
State-Changed-Why:  
Command invocation does not support standard getopt processing 
by desgin.  This is not a bug. 
>Unformatted:



