diff options
author | gilles <gilles@openbsd.org> | 2020-01-06 11:03:06 +0000 |
---|---|---|
committer | gilles <gilles@openbsd.org> | 2020-01-06 11:03:06 +0000 |
commit | dd673463b141cee81ca1d810a00b89f9ab61e674 (patch) | |
tree | 41e1f33e5162b656432df6c5e5c22d8af4b294a3 /usr.sbin/smtpd | |
parent | provide a better error message for invalid smtpctl commands (diff) | |
download | wireguard-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.c | 4 |
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"); } |