diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-13 14:06:02 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2018-12-13 14:06:02 +0000 |
commit | 20d908b31a52479c20e73b140a683e489a049a19 (patch) | |
tree | c3e9b38eaa87d30a2fe934ad374c1dd985258565 | |
parent | d8ee6ba176a0caa93122ecb6e582ef16a8f3a85f (diff) |
we don't want to parse a filter command line
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 27e751cc625..03ccab623a0 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.311 2018/12/11 13:40:30 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.312 2018/12/13 14:06:01 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1318,9 +1318,11 @@ fork_processor(const char *name, const char *command, const char *user, const ch signal(SIGHUP, SIG_DFL) == SIG_ERR) err(1, "signal"); - execle(command, name, (char *)NULL, NULL); - perror("execle"); - _exit(1); + if (system(command) == -1) + err(1, NULL); + + /* there's no successful exit from a processor */ + err(1, NULL); } static void |