From 5a9728b12700c52a0e3fc297bc4f83e151e946a8 Mon Sep 17 00:00:00 2001 From: jung Date: Sat, 29 Apr 2017 19:03:45 +0000 Subject: [PATCH] fix argument check, this should never trigger because it is a libexec called by smtpd, but for the sake of correctness from Edgar Pettijohn ok gilles@ --- usr.sbin/smtpd/mail.file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/mail.file.c b/usr.sbin/smtpd/mail.file.c index 7b6cac2c1d9..cd9fd88fcf3 100644 --- a/usr.sbin/smtpd/mail.file.c +++ b/usr.sbin/smtpd/mail.file.c @@ -47,7 +47,7 @@ main(int argc, char *argv[]) if (argc == 0) errx(1, "mail.file: filename required"); - if (argc != 0) + if (argc > 1) errx(1, "mail.file: only one filename is supported"); file_engine(argv[0]); -- 2.20.1