Subject: pkg/17360: Fixed mail/courier-auth to work with new getopt
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmmv@hispabsd.org>
List: netbsd-bugs
Date: 06/22/2002 16:14:45
>Number:         17360
>Category:       pkg
>Synopsis:       Fixed mail/courier-auth to work with new getopt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 22 07:14:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Julio Merino
>Release:        NetBSD 1.6B
>Organization:
HispaBSD
>Environment:
	
	
System: NetBSD darkstar.local 1.6B NetBSD 1.6B (DARKSTAR) #1: Fri Jun 21 13:22:23 CEST 2002 root@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	The rc.d startup file of the package mail/courier-auth has a problem
	with the env command. It invokes 'env -' which does not work with
	the new getopt. Even if it is reverted to old behavior, this way of
	working is deprecated, according to env(1), so I've fixed the script
	to use -i instead of -
>How-To-Repeat:
	
>Fix:

Index: files/authdaemond.sh
===================================================================
RCS file: /cvsroot/pkgsrc/mail/courier-auth/files/authdaemond.sh,v
retrieving revision 1.3
diff -u -u -r1.3 authdaemond.sh
--- authdaemond.sh	2002/02/05 06:04:37	1.3
+++ authdaemond.sh	2002/06/22 14:08:34
@@ -48,7 +48,7 @@
         stop)   echo "Stopping ${name}." ;;
         esac
 
-        @SETENV@ - ${daemon} ${action}
+        @SETENV@ -i ${daemon} ${action}
 }
 
 if [ -f /etc/rc.subr ]
>Release-Note:
>Audit-Trail:
>Unformatted: