Bug-fix the xpg4 Solaris logic. exim-4_74
authorPhil Pennock <pdp@exim.org>
Mon, 24 Jan 2011 21:40:38 +0000 (16:40 -0500)
committerPhil Pennock <pdp@exim.org>
Mon, 24 Jan 2011 21:40:38 +0000 (16:40 -0500)
Should not code at 9am when still awake then.
Should sanity-review such code changes before submitting (after sleep).
Should s,/usr/xpg4/bin/sh,/bin/bash, as a convenient test to confirm
what I suspected.  But should do so pre-submit.

Doh.

src/scripts/lookups-Makefile

index 959d49e118c4dd3633d81649d6a5fb58eeeeedcc..2c4dc96b819e2eb533c1d2fd07ad836641ecb8c3 100755 (executable)
@@ -2,13 +2,13 @@
 
 # We turn the configure-built build-$foo/lookups/Makefile.predynamic into Makefile
 
 
 # We turn the configure-built build-$foo/lookups/Makefile.predynamic into Makefile
 
-if [ -x /usr/xpg4/bin/sh ] && [ -z "EXIM_BLOCK_XPG4_LOOP" ]
+if [ -x /usr/xpg4/bin/sh ] && [ -z "$EXIM_BLOCK_XPG4_LOOP" ]
 then
   EXIM_BLOCK_XPG4_LOOP=yes
   export EXIM_BLOCK_XPG4_LOOP
   PATH="/usr/xpg4/bin:$PATH"
   export PATH
 then
   EXIM_BLOCK_XPG4_LOOP=yes
   export EXIM_BLOCK_XPG4_LOOP
   PATH="/usr/xpg4/bin:$PATH"
   export PATH
-  exec /usr/xpg4/bin/sh "$@"
+  exec /usr/xpg4/bin/sh "$0" "$@"
 fi
 
 input=lookups/Makefile.predynamic
 fi
 
 input=lookups/Makefile.predynamic