Bug in #! processing

Ceri Davies ceri at submonkey.net
Wed Sep 29 06:53:50 PDT 2004

On Wed, Sep 29, 2004 at 08:33:51AM -0500, Ryan Sommers wrote:
> 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.

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.

It is not tinfoil, it is my new skin.  I am a robot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040929/e52f8477/attachment.bin

More information about the freebsd-current mailing list