From jeremyp@gsmx07.alcatel.com.au  Mon Sep 25 14:40:44 2000
Return-Path: <jeremyp@gsmx07.alcatel.com.au>
Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10])
	by hub.freebsd.org (Postfix) with SMTP id 7BE5037B449
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Mon, 25 Sep 2000 14:40:30 -0700 (PDT)
Received: by border.alcanet.com.au id <115209>; Tue, 26 Sep 2000 08:40:00 +1000
Message-Id: <00Sep26.084000est.115209@border.alcanet.com.au>
Date: Tue, 26 Sep 2000 08:40:14 +1100 (EST)
From: peter.jeremy@alcatel.com.au
Sender: jeremyp@gsmx07.alcatel.com.au
Reply-To: peter.jeremy@alcatel.com.au
To: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: mail.local(8) doesn't allow nobiff option
X-Send-Pr-Version: 3.2

>Number:         21544
>Category:       bin
>Synopsis:       mail.local(8) doesn't allow nobiff option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 25 14:50:01 PDT 2000
>Closed-Date:    Tue Oct 10 15:28:43 PDT 2000
>Last-Modified:  Tue Oct 10 15:29:21 PDT 2000
>Originator:     Peter Jeremy
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Alcatel Australia Limited
>Environment:

	cvs-cur 6737

>Description:

	The nobiff option is a local FreeBSD mod to mail.local.  It
	originally used `-b', but recent versions of sendmail use
	that to mean `bounce mail when over quota' and the nobiff
	option was changed to `-B'.  Unfortunately, the getopt(3)
	string was not changed to suit.  Therefore any attempt to
	use `-B' is rejected.

>How-To-Repeat:

	Run the command "/usr/libexec/mail.local -B"

>Fix:

Index: mail.local.c
===================================================================
RCS file: /home/CVSROOT/src/contrib/sendmail/mail.local/mail.local.c,v
retrieving revision 1.7
diff -u -r1.7 mail.local.c
--- mail.local.c	2000/08/12 22:19:12	1.7
+++ mail.local.c	2000/09/25 21:31:36
@@ -304,7 +304,7 @@
 # endif /* LOG_MAIL */
 
 	from = NULL;
-	while ((ch = getopt(argc, argv, "7bdf:r:l")) != -1)
+	while ((ch = getopt(argc, argv, "7Bbdf:r:l")) != -1)
 	{
 		switch(ch)
 		{

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: johan 
Responsible-Changed-When: Tue Oct 10 15:19:50 PDT 2000 
Responsible-Changed-Why:  
Over to sendmail maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21544 
State-Changed-From-To: open->closed 
State-Changed-By: gshapiro 
State-Changed-When: Tue Oct 10 15:28:43 PDT 2000 
State-Changed-Why:  
This -B and -s FreeBSD-only options have been added to the getopt() string 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21544 
>Unformatted:
