summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2020-01-06 11:03:06 +0000
committergilles <gilles@openbsd.org>2020-01-06 11:03:06 +0000
commitdd673463b141cee81ca1d810a00b89f9ab61e674 (patch)
tree41e1f33e5162b656432df6c5e5c22d8af4b294a3 /usr.sbin/smtpd
parentprovide a better error message for invalid smtpctl commands (diff)
downloadwireguard-openbsd-dd673463b141cee81ca1d810a00b89f9ab61e674.tar.xz
wireguard-openbsd-dd673463b141cee81ca1d810a00b89f9ab61e674.zip
do not allow passing options to smtpctl encrypt
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index a985172a3fb..129abb51835 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.165 2019/07/23 08:11:10 gilles Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.166 2020/01/06 11:03:06 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -945,7 +945,7 @@ do_encrypt(int argc, struct parameter *argv)
if (argv)
p = argv[0].u.u_str;
- execl(PATH_ENCRYPT, "encrypt", p, (char *)NULL);
+ execl(PATH_ENCRYPT, "encrypt", "--", p, (char *)NULL);
errx(1, "execl");
}