Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 1995 11:34:02 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        ortmann@plains.nodak.edu
Cc:        freebsd-bugs@freefall.cdrom.com
Subject:   Re: bin/358: incorrect argument handling in "dump"
Message-ID:  <199504231834.LAA04425@gndrsh.aac.dev.com>
In-Reply-To: <199504231730.KAA02845@freefall.cdrom.com> from "ortmann@plains.nodak.edu" at Apr 23, 95 10:30:00 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> >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:          open
> >Class:          sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Sun Apr 23 10:30:00 1995
> >Originator:     Daniel Ortmann
> >Organization:
> >Release:        FreeBSD 2.0.950418-SNAP i386
> >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.

You are not using the correct command syntax for dump, read the manual
page *very carefully*.  Dump does not accept a - before the list of
options, nor does it allow multiple options to be spaced apart.  This
is very old V6 behavior, and should probably be changed, but that would
break compatibility dating back 15 years :-(.

You command should be:
dump 0cubBf 8 349525 /dev/nrst0 /

I am closing the PR.

-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504231834.LAA04425>