Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 08:40:14 +1100 (EST)
From:      peter.jeremy@alcatel.com.au
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/21544: mail.local(8) doesn't allow nobiff option
Message-ID:  <00Sep26.084000est.115209@border.alcanet.com.au>

next in thread | raw e-mail | index | archive | help

>Number:         21544
>Category:       bin
>Synopsis:       mail.local(8) doesn't allow nobiff option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 25 14:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>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?00Sep26.084000est.115209>