From 8dca000040bd82cebd2c184d219836b7884ddf56 Mon Sep 17 00:00:00 2001 From: наб Date: Fri, 23 Apr 2021 22:41:19 +0200 Subject: zed.d/*-notify.sh: use mktemp instead of generating temp path manually MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Tony Hutter Signed-off-by: Ahelenia Ziemiańska Closes #11935 --- cmd/zed/zed.d/generic-notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/zed/zed.d/generic-notify.sh') diff --git a/cmd/zed/zed.d/generic-notify.sh b/cmd/zed/zed.d/generic-notify.sh index e438031a0..1db26980c 100755 --- a/cmd/zed/zed.d/generic-notify.sh +++ b/cmd/zed/zed.d/generic-notify.sh @@ -31,7 +31,7 @@ umask 077 pool_str="${ZEVENT_POOL:+" for ${ZEVENT_POOL}"}" host_str=" on $(hostname)" note_subject="ZFS ${ZEVENT_SUBCLASS} event${pool_str}${host_str}" -note_pathname="${TMPDIR:="/tmp"}/$(basename -- "$0").${ZEVENT_EID}.$$" +note_pathname="$(mktemp)" { echo "ZFS has posted the following event:" echo -- cgit v1.2.3