artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb2eeb
)
fix argument check, this should never trigger because it is a libexec called by
author
jung
<jung@openbsd.org>
Sat, 29 Apr 2017 19:03:45 +0000
(19:03 +0000)
committer
jung
<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
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/mail.file.c
b/usr.sbin/smtpd/mail.file.c
index
7b6cac2
..
cd9fd88
100644
(file)
--- 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]);