Opened 16 years ago
Closed 16 years ago
#105 closed defect (fixed)
binfmt_misc overrides shebang now
| Reported by: | andersk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | internals | Keywords: | |
| Cc: |
Description
scripts / sql-signup / andersk 15:37 (Anders Kaseorg)
Wait, when did binfmt_misc start overriding shebang lines?
scripts / sql-signup / quentin 15:39 (Quentin Smith)
It did?
scripts / sql-signup / andersk 15:40 (Anders Kaseorg)
[andersk@bees-knees]:~/web_scripts$ cat test.php
#!/bin/cat
hello
[andersk@bees-knees]:~/web_scripts$ ./test.php
X-Powered-By: PHP/5.2.9
Content-type: text/html
hello
scripts / sql-signup / mitchb 15:41 (Yum, this spam is fresh!)
That's kind of awesome. The binfmt_misc magic still kind of confuses
me.
scripts / sql-signup / andersk 15:41 (Anders Kaseorg)
That’s really bad. Unless it’s configurable, we should get rid of
the .php binfmt (since I think we aren’t using it), and deprecate and
remove the .pl and .py binfmts as soon as we can.
Also, we should be recognizing Mono applications by magic number (MZ) and not extension (.exe), as described here.
Change History (1)
comment:1 Changed 16 years ago by andersk
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Fixed in r1357.