Date: Tue, 15 Oct 2002 00:08:11 +0200 (CEST) From: Stefan Farfeleder <stefan@frog.fafoe> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/44066: [PATCH] newsyslog getopt string contains erroneous "t:" Message-ID: <20021014220811.866D02B0@frog.fafoe>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021014220811.866D02B0>