diff options
author | Joerg Jung <jung@cvs.openbsd.org> | 2017-04-29 19:03:46 +0000 |
---|---|---|
committer | Joerg Jung <jung@cvs.openbsd.org> | 2017-04-29 19:03:46 +0000 |
commit | c29feadca3039aa02285d29dbb4c8ef787875d68 (patch) | |
tree | def2b764a8f03992b8dc58472601127705f5444a /usr.sbin | |
parent | 7dfca73d74273567419b8b6013dd9123b7adeb40 (diff) |
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@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/mail.file.c | 2 |
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]); |