aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2021-06-29 22:33:49 +0300
committerBrian Behlendorf <[email protected]>2021-06-29 13:15:21 -0700
commit0584ad8f94f7df31a1b5b35f27cd8747935317b9 (patch)
treec2f1175df9c81de9a8b6a538567206c4bbcf0dda /cmd
parentea478570908b57f9c141c0082cb6b6815938ea17 (diff)
zed: fix sending emails (#12292)
Commit 6fc3099 broke the quoting when invoking the mail program, revert that change. Signed-off-by: LaurenČ›iu Nicola <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]>
Diffstat (limited to 'cmd')
-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 7dcd6b2d2..d1ebf7dbc 100644
--- a/cmd/zed/zed.d/zed-functions.sh
+++ b/cmd/zed/zed.d/zed-functions.sh
@@ -263,7 +263,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}"