From owner-freebsd-bugs Sun Apr 23 11:36:50 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA04013 for bugs-outgoing; Sun, 23 Apr 1995 11:36:50 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA04007 for ; Sun, 23 Apr 1995 11:36:47 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id LAA04425; Sun, 23 Apr 1995 11:34:03 -0700 From: "Rodney W. Grimes" Message-Id: <199504231834.LAA04425@gndrsh.aac.dev.com> Subject: Re: bin/358: incorrect argument handling in "dump" To: ortmann@plains.nodak.edu Date: Sun, 23 Apr 1995 11:34:02 -0700 (PDT) Cc: freebsd-bugs@freefall.cdrom.com In-Reply-To: <199504231730.KAA02845@freefall.cdrom.com> from "ortmann@plains.nodak.edu" at Apr 23, 95 10:30:00 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1562 Sender: bugs-owner@FreeBSD.org Precedence: bulk > > > >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