Subject: bin/36643: vacation -m doesn't work
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <ef@math.uni-bonn.de>
List: netbsd-bugs
Date: 07/13/2007 12:55:00
>Number:         36643
>Category:       bin
>Synopsis:       vacation -m doesn't work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 13 12:55:00 +0000 2007
>Originator:     Edgar Fuß
>Release:        NetBSD 4.0_BETA2
>Organization:
	Mathematisches Institut der Universität Bonn, Computerabteilung
>Description:
	vacation -m doesn't work but prints usage
	looks like nobody but me uses this
>How-To-Repeat:
	vacation -d -m /etc/passwd root
>Fix:
--- vacation.c.orig	2004-08-19 15:43:54.000000000 +0200
+++ vacation.c	2007-07-13 12:35:07.000000000 +0200
@@ -131,7 +131,7 @@
 	opterr = 0;
 	interval = -1;
 	openlog(getprogname(), 0, LOG_USER);
-	while ((ch = getopt(argc, argv, "a:df:F:Iijr:s:t:T:")) != -1)
+	while ((ch = getopt(argc, argv, "a:df:F:Iijm:r:s:t:T:")) != -1)
 		switch((char)ch) {
 		case 'a':			/* alias */
 			if (!(cur = (alias_t *)malloc((size_t)sizeof(alias_t))))