summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-12 15:12:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-12 15:12:28 +0000
commitb6da3410a97e83cb240f85b8a23f6f2a821b7fb5 (patch)
tree5a1be7d8455a4aae4649b83f5e7f74db79545791 /libexec
parent5c3e1749315892ec81d435d81cdf3cfd83f15814 (diff)
fix option argument parsing, nirva@ishiboo.com
Diffstat (limited to 'libexec')
-rw-r--r--libexec/mail.local/mail.local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c
index 4218c5f1da6..7ee9de33b81 100644
--- a/libexec/mail.local/mail.local.c
+++ b/libexec/mail.local/mail.local.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";*/
-static char rcsid[] = "$Id: mail.local.c,v 1.11 1997/01/17 07:12:03 millert Exp $";
+static char rcsid[] = "$Id: mail.local.c,v 1.12 1997/02/12 15:12:27 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -86,7 +86,7 @@ main(argc, argv)
openlog("mail.local", LOG_PERROR, LOG_MAIL);
from = NULL;
- while ((ch = getopt(argc, argv, "lLdf:r:")) != -1)
+ while ((ch = getopt(argc, argv, "lLdf:r:H")) != -1)
switch(ch) {
case 'd': /* backward compatible */
break;
@@ -485,7 +485,7 @@ notifybiff(msg)
void
usage()
{
- err(FATAL, "usage: mail.local [-f from] user ...");
+ err(FATAL, "usage: mail.local [-lLH] [-f from] user ...");
}
#if __STDC__