Portability fix for Solaris without xpg4 utilities
authorTony Finch <dot@dotat.at>
Thu, 7 Nov 2013 16:26:33 +0000 (16:26 +0000)
committerTony Finch <dot@dotat.at>
Thu, 7 Nov 2013 16:26:33 +0000 (16:26 +0000)
doc/doc-txt/ChangeLog
src/scripts/lookups-Makefile

index 85c5625b0b9638f3cb4931e9d61b41c1eade01be..6b8405d76de722e357006500f268dbecb2341634 100644 (file)
@@ -14,6 +14,9 @@ TF/01 Correctly close the server side of TLS when forking for delivery.
       connection previously had. Exim would try to use TLS and fail, logging
       a "Bad file descriptor" error.
 
+TF/02 Portability fix for building lookup modules on Solaris when the xpg4
+      utilities have not been installed.
+
 
 Exim version 4.82
 -----------------
index 51fbd944b0836d9da04bfea7476cc680bff2e16f..d2caf70c85a85692958d0da7b4a4afca08c9b02b 100755 (executable)
@@ -95,7 +95,10 @@ emit_module_rule() {
   local mod_name pkgconf
   if [ "${lookup_name%:*}" = "$lookup_name" ]
   then
-    mod_name=$(echo $lookup_name | tr A-Z a-z)
+    # Square brackets are redundant but benign for POSIX compliant tr,
+    # however Solaris /usr/bin/tr requires them. Sometimes Solaris
+    # gets installed without a complete set of xpg4 tools, sigh.
+    mod_name=$(echo $lookup_name | tr [A-Z] [a-z])
   else
     mod_name="${lookup_name#*:}"
     lookup_name="${lookup_name%:*}"