From 2884a924083a23d6bf3399f5fd044717c313c9de Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 4 Dec 2025 13:24:48 -0500 Subject: [PATCH] Avoid using bash special device nodes. Bash has special handling when these standard IO files, but there are cases where customers have special restrictions set on them. Likely to avoid leaking error data out of system logs as part of IDS software. In any case, we can just reopen existing file descriptors here in both these cases to avoid this entirely. This will always work. Signed-off-by: Auke Kok --- tests/fenced-local-force-unmount.sh | 2 +- utils/fenced/scoutfs-fenced | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fenced-local-force-unmount.sh b/tests/fenced-local-force-unmount.sh index f725e78b..d20bce35 100755 --- a/tests/fenced-local-force-unmount.sh +++ b/tests/fenced-local-force-unmount.sh @@ -9,7 +9,7 @@ echo "$0 running rid '$SCOUTFS_FENCED_REQ_RID' ip '$SCOUTFS_FENCED_REQ_IP' args '$@'" echo_fail() { - echo "$@" >> /dev/stderr + echo "$@" >&2 exit 1 } diff --git a/utils/fenced/scoutfs-fenced b/utils/fenced/scoutfs-fenced index 5070de4f..e24615cc 100755 --- a/utils/fenced/scoutfs-fenced +++ b/utils/fenced/scoutfs-fenced @@ -7,7 +7,7 @@ message_output() error_message() { - message_output "$@" >> /dev/stderr + message_output "$@" >&2 } error_exit()