Bug-fix the xpg4 Solaris logic.
[exim.git] / 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
 
-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
-  exec /usr/xpg4/bin/sh "$@"
+  exec /usr/xpg4/bin/sh "$0" "$@"
 fi
 
 input=lookups/Makefile.predynamic