diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-10-05 09:19:31 +0100 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-10-05 09:19:31 +0100 |
| commit | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (patch) | |
| tree | ad799ccacfb459b809b02b9c115ed4befb93b4c1 /security/acme.sh/files/patch-acme.sh | |
| parent | 0b1510fe1f98f82da6f3481cb6c58957022d9211 (diff) | |
| parent | b057c68280a2f2a7b3d1fbac36f7b034e1fdf593 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/main
Diffstat (limited to 'security/acme.sh/files/patch-acme.sh')
| -rw-r--r-- | security/acme.sh/files/patch-acme.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/security/acme.sh/files/patch-acme.sh b/security/acme.sh/files/patch-acme.sh new file mode 100644 index 000000000000..e21b8561a5dc --- /dev/null +++ b/security/acme.sh/files/patch-acme.sh @@ -0,0 +1,36 @@ +diff --git acme.sh acme.sh +index 3316b25fa9..02986a332d 100755 +--- acme.sh ++++ acme.sh +@@ -436,14 +436,28 @@ _secure_debug3() { + fi + } + ++__USE_TR_TAG="" ++if [ "$(echo "abc" | LANG=C tr a-z A-Z 2>/dev/null)" != "ABC" ] ; then ++ __USE_TR_TAG="1" ++fi ++export __USE_TR_TAG ++ + _upper_case() { ++ if [ "$__USE_TR_TAG" ]; then ++ LANG=C tr '[:lower:]' '[:upper:]' ++ else + # shellcheck disable=SC2018,SC2019 +- tr '[a-z]' '[A-Z]' ++ LANG=C tr '[a-z]' '[A-Z]' ++ fi + } + + _lower_case() { +- # shellcheck disable=SC2018,SC2019 +- tr '[A-Z]' '[a-z]' ++ if [ "$__USE_TR_TAG" ]; then ++ LANG=C tr '[:upper:]' '[:lower:]' ++ else ++ # shellcheck disable=SC2018,SC2019 ++ LANG=C tr '[A-Z]' '[a-z]' ++ fi + } + + _startswith() { |
