From owner-freebsd-bugs Mon Oct 14 15:10: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4D2737B401 for ; Mon, 14 Oct 2002 15:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B704E43EB7 for ; Mon, 14 Oct 2002 15:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9EMA1Co085524 for ; Mon, 14 Oct 2002 15:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9EMA11B085523; Mon, 14 Oct 2002 15:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8270D37B401 for ; Mon, 14 Oct 2002 15:08:13 -0700 (PDT) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D058443EAC for ; Mon, 14 Oct 2002 15:08:12 -0700 (PDT) (envelope-from stefan@fafoe.dyndns.org) Received: by frog.fafoe (Postfix, from userid 1001) id 866D02B0; Tue, 15 Oct 2002 00:08:11 +0200 (CEST) Message-Id: <20021014220811.866D02B0@frog.fafoe> Date: Tue, 15 Oct 2002 00:08:11 +0200 (CEST) From: Stefan Farfeleder Reply-To: Stefan Farfeleder To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/44066: [PATCH] newsyslog getopt string contains erroneous "t:" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44066 >Category: bin >Synopsis: [PATCH] newsyslog getopt string contains erroneous "t:" >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 14 15:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Stefan Farfeleder >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD frog.fafoe 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Oct 10 18:20:30 CEST 2002 freebsd@frog.fafoe:/freebsd/stable/obj/freebsd/stable/src/sys/FROG i386 >Description: The "t:" in the getopt string was an error in the original source imported from NetBSD. There it was fixed in revision 1.21. >How-To-Repeat: frog# newsyslog -t newsyslog: option requires an argument -- t usage: newsyslog [-Fnrv] [-f config-file] [-a directory] frog# newsyslog -t foo usage: newsyslog [-Fnrv] [-f config-file] [-a directory] >Fix: [This patch is against -current] Index: newsyslog.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/newsyslog/newsyslog.c,v retrieving revision 1.44 diff -u -r1.44 newsyslog.c --- newsyslog.c 1 Jul 2002 13:18:52 -0000 1.44 +++ newsyslog.c 14 Oct 2002 21:40:52 -0000 @@ -230,7 +230,7 @@ if ((p = strchr(hostname, '.'))) { *p = '\0'; } - while ((c = getopt(argc, argv, "nrvFf:a:t:")) != -1) + while ((c = getopt(argc, argv, "nrvFf:a:")) != -1) switch (c) { case 'n': noaction++; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message