From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 13:53:50 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A371116A4CE for ; Wed, 29 Sep 2004 13:53:50 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28D4A43D2F for ; Wed, 29 Sep 2004 13:53:50 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.42 (FreeBSD)) id 1CCetu-000Grc-73; Wed, 29 Sep 2004 14:53:46 +0100 Date: Wed, 29 Sep 2004 14:53:46 +0100 From: Ceri Davies To: Ryan Sommers Message-ID: <20040929135346.GB2493@submonkey.net> Mail-Followup-To: Ceri Davies , Ryan Sommers , S?awek ?ak , freebsd-current@freebsd.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lgMUTs6uCzvRR5Zd" Content-Disposition: inline In-Reply-To: <415AB9BF.1070003@gamersimpact.com> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies cc: freebsd-current@freebsd.org Subject: Re: Bug in #! processing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2004 13:53:50 -0000 --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--