fix argument check, this should never trigger because it is a libexec called by
authorjung <jung@openbsd.org>
Sat, 29 Apr 2017 19:03:45 +0000 (19:03 +0000)
committerjung <jung@openbsd.org>
Sat, 29 Apr 2017 19:03:45 +0000 (19:03 +0000)
smtpd, but for the sake of correctness

from Edgar Pettijohn

ok gilles@

usr.sbin/smtpd/mail.file.c

index 7b6cac2..cd9fd88 100644 (file)
@@ -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]);