diff options
Diffstat (limited to 'contrib/sendmail/libmilter/README')
-rw-r--r-- | contrib/sendmail/libmilter/README | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/sendmail/libmilter/README b/contrib/sendmail/libmilter/README index efc0b65..96fba66 100644 --- a/contrib/sendmail/libmilter/README +++ b/contrib/sendmail/libmilter/README @@ -427,6 +427,7 @@ main(argc, argv) int argc; char *argv[]; { + bool setconn = false; int c; const char *args = "p:"; @@ -443,10 +444,16 @@ main(argc, argv) exit(EX_USAGE); } (void) smfi_setconn(optarg); + setconn = true; break; } } + if (!setconn) + { + fprintf(stderr, "%s: Missing required -p argument\n", argv[0]); + exit(EX_USAGE); + } if (smfi_register(smfilter) == MI_FAILURE) { fprintf(stderr, "smfi_register failed\n"); @@ -457,4 +464,4 @@ main(argc, argv) /* eof */ -$Revision: 8.35.2.1 $, Last updated $Date: 2002/10/21 14:31:57 $ +$Revision: 8.35.2.2 $, Last updated $Date: 2003/05/26 04:10:06 $ |