Subject: bin/745: bogus newsyslog error message.
To: None <gnats-admin@NetBSD.ORG>
From: None <mrg@mame.mu.OZ.AU>
List: netbsd-bugs
Date: 01/20/1995 22:20:04
>Number:         745
>Category:       bin
>Synopsis:       newsyslog has a bogus error message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 20 22:20:02 1995
>Originator:     matthew green
>Organization:
bozotic softwar foundation
>Release:        n/a
>Environment:
System: NetBSD splode.mame.mu.OZ.AU 1.0A NetBSD 1.0A (_splode_) #127: Sat Jan 21 14:58:53 EST 1995 mrg@splode.mame.mu.OZ.AU:/splode/build/src/sys/arch/sparc/compile/_splode_ sparc


>Description:

	newsyslog -h gives bogus error messages.

>How-To-Repeat:
>Fix:

	the follow patch adds the right argument.  it could probably use __progname
	instead, but then i'd be forced to KNF the whole source.  :-)

Index: newsyslog.c
*** 1.1.1.1	Sat Jan 14 13:42:39 1995
--- newsyslog.c	Sat Jan 21 17:11:42 1995
***************
*** 221,227 ****
  usage()
  {
          fprintf(stderr,
!                 "Usage: %s <-nrv> <-f config-file>\n");
          exit(1);
  }
  
--- 221,227 ----
  usage()
  {
          fprintf(stderr,
!                 "Usage: %s <-nrv> <-f config-file>\n", progname);
          exit(1);
  }
  
>Audit-Trail:
>Unformatted: