mirror of
https://github.com/versity/scoutfs.git
synced 2025-12-23 13:35:18 +00:00
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 <auke.kok@versity.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
echo "$0 running rid '$SCOUTFS_FENCED_REQ_RID' ip '$SCOUTFS_FENCED_REQ_IP' args '$@'"
|
echo "$0 running rid '$SCOUTFS_FENCED_REQ_RID' ip '$SCOUTFS_FENCED_REQ_IP' args '$@'"
|
||||||
|
|
||||||
echo_fail() {
|
echo_fail() {
|
||||||
echo "$@" >> /dev/stderr
|
echo "$@" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ message_output()
|
|||||||
|
|
||||||
error_message()
|
error_message()
|
||||||
{
|
{
|
||||||
message_output "$@" >> /dev/stderr
|
message_output "$@" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
error_exit()
|
error_exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user