From 04de79371cc3e9acfb20e0a51c869dcb38547add Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Thu, 5 Dec 2024 16:04:58 -0600 Subject: [PATCH] Adjusted cf-support temp dir function to work on more UNIX platforms head -c 8 doesn't work on hpux 11.23 that we test on currently dd count=1 bs=8 should work on all UNIX systems Additionally, tr on solaris needs LC_CTYPE=C as it can't handle binary data. Ticket: ENT-9786 Changelog: title --- misc/cf-support | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cf-support b/misc/cf-support index df7d1439b0..fadd9db12a 100755 --- a/misc/cf-support +++ b/misc/cf-support @@ -120,7 +120,7 @@ make_temp_dir() else # shellcheck disable=SC2021 # ^^ legacy/POSIX requires square brackets - _tmp="/tmp/`tr -dc "[A-Z][a-z][0-9]" /dev/null`" mkdir "$_tmp" echo "$_tmp" fi