From: jung Date: Sat, 29 Apr 2017 19:03:45 +0000 (+0000) Subject: fix argument check, this should never trigger because it is a libexec called by X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5a9728b12700c52a0e3fc297bc4f83e151e946a8;p=openbsd 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@ --- 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]);