r8452: allow for the ugly hack:
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2005 07:21:59 +0000 (07:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:05 +0000 (13:23 -0500)
commit0e5907d57cdfb0c1ce3f151161a9260c14466bd0
treeaa522b01632adbe40b01b362f9ee9d13bb77e02a
parentfa2b97a20a518708e4534e8aa2cce12024228488
r8452: allow for the ugly hack:

#!/bin/sh
exec smbscript "$0" ${1+"$@"}

which is needed because bloody solaris puts 'env' in /bin instead of /usr/bin

also neaten up the #! handling code.
(This used to be commit 778bcd3738e42d8adfd4529f790c898f0d904363)
source4/scripting/ejs/smbscript.c