From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 13:33:34 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 3671716A4CE for ; Wed, 29 Sep 2004 13:33:34 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id A1A7D43D31 for ; Wed, 29 Sep 2004 13:33:33 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 49775 invoked by uid 0); 29 Sep 2004 13:33:08 -0000 Received: from unknown (HELO ?192.168.0.5?) (216.160.49.134) by node15.coopprint.com with SMTP; 29 Sep 2004 13:33:08 -0000 Message-ID: <415AB9BF.1070003@gamersimpact.com> Date: Wed, 29 Sep 2004 08:33:51 -0500 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ceri Davies References: <861xgm5ltz.fsf@thirst.unx.era.pl> <20040928194853.GT2493@submonkey.net> <86k6ud2t6t.fsf@thirst.unx.era.pl> <20040929131136.GA2493@submonkey.net> In-Reply-To: <20040929131136.GA2493@submonkey.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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:33:34 -0000 Ceri Davies wrote: > 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 done to avoid a possible circular reference. The interpreter magic is only allowed one level of indirection to avoid such a case. This might have been added to avoid a malicious condition. -- Ryan Sommers ryans@gamersimpact.com