aboutsummaryrefslogtreecommitdiffstats
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
commitb80df34268be96cd311628e9e9832255190d4bcc (patch)
tree6f71d11a82530807ec9da95c8486b07a30d685a7
parentprovide a better error message for invalid smtpctl commands (diff)
downloadOpenSMTPD-b80df34268be96cd311628e9e9832255190d4bcc.tar.xz
OpenSMTPD-b80df34268be96cd311628e9e9832255190d4bcc.zip
do not allow passing options to smtpctl encrypt
-rw-r--r--smtpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smtpctl.c b/smtpctl.c
index a985172a..129abb51 100644
--- a/smtpctl.c
+++ b/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");
}