From 4a7bb1a078f8501e32a6bde925a596dea1cab6ab Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 12 Feb 1997 15:12:27 +0000 Subject: [PATCH] fix option argument parsing, nirva@ishiboo.com --- libexec/mail.local/mail.local.c | 6 +++--- 1 file 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 @@ -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__ -- 2.20.1