Date: Wed, 29 Sep 2004 14:53:46 +0100 From: Ceri Davies <ceri@submonkey.net> To: Ryan Sommers <ryans@gamersimpact.com> Cc: freebsd-current@freebsd.org Subject: Re: Bug in #! processing Message-ID: <20040929135346.GB2493@submonkey.net> In-Reply-To: <415AB9BF.1070003@gamersimpact.com> References: <861xgm5ltz.fsf@thirst.unx.era.pl> <20040928194853.GT2493@submonkey.net> <86k6ud2t6t.fsf@thirst.unx.era.pl> <20040929131136.GA2493@submonkey.net> <415AB9BF.1070003@gamersimpact.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--lgMUTs6uCzvRR5Zd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 29, 2004 at 08:33:51AM -0500, Ryan Sommers wrote: > Ceri Davies wrote: >=20 > >That seems wrong too. #! shouldn't be magic anywhere other than at the > >beginning of a file. > > > I haven't looked at the code yet, on my list, but I'm guessing this was= =20 > done to avoid a possible circular reference. The interpreter magic is=20 > only allowed one level of indirection to avoid such a case. This might=20 > have been added to avoid a malicious condition. That check doesn't actually exist. The reason for ignoring # given in the relevant commit log (r1.21) was to allow comments on the first line. Ceri --=20 It is not tinfoil, it is my new skin. I am a robot. --lgMUTs6uCzvRR5Zd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBWr5qocfcwTS3JF8RAoRFAKC5DLpbt0ufdzIZGXNLUg+uycmhYACffXwI VWeZs218qFxs8D+8Kom+TPk= =uGyM -----END PGP SIGNATURE----- --lgMUTs6uCzvRR5Zd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040929135346.GB2493>