summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/smtpd/mail.file.c2
1 files changed, 1 insertions, 1 deletions
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]);