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)
commit778bcd3738e42d8adfd4529f790c898f0d904363
treefd3442d152d66bb73b0927f6d270b134d23702a6
parent3c4291e49abed14973b4a4fa1a9277918b896cac
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.
source/scripting/ejs/smbscript.c