aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@users.noreply.github.com>2021-06-29 19:33:49 +0000
committerGitHub <noreply@github.com>2021-06-29 19:33:49 +0000
commit3482c2b79ae062dbbc8032d63435d90846580920 (patch)
treeb28485b785abbc64a0c8a27500d714e35293221c
parent6a19dea7f68eaf44003008d284270933ad9d3177 (diff)
downloadsrc-3482c2b79ae062dbbc8032d63435d90846580920.tar.gz
src-3482c2b79ae062dbbc8032d63435d90846580920.zip
zed: fix sending emails (#12292)
Commit 6fc3099 broke the quoting when invoking the mail program, revert that change. Signed-off-by: Laurențiu Nicola <lnicola@dend.ro> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov>
-rw-r--r--cmd/zed/zed.d/zed-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed.d/zed-functions.sh b/cmd/zed/zed.d/zed-functions.sh
index 9f8531d737a6..2ec0ea6948d8 100644
--- a/cmd/zed/zed.d/zed-functions.sh
+++ b/cmd/zed/zed.d/zed-functions.sh
@@ -267,7 +267,7 @@ zed_notify_email()
-e "s/@SUBJECT@/${subject}/g")"
# shellcheck disable=SC2086
- ${ZED_EMAIL_PROG} ${ZED_EMAIL_OPTS} < "${pathname}" >/dev/null 2>&1
+ eval ${ZED_EMAIL_PROG} ${ZED_EMAIL_OPTS} < "${pathname}" >/dev/null 2>&1
rv=$?
if [ "${rv}" -ne 0 ]; then
zed_log_err "$(basename "${ZED_EMAIL_PROG}") exit=${rv}"